Skip to content

Commit 1b89943

Browse files
committed
VeriFast docs: rename fn to reverse_in_place
1 parent fdd1de3 commit 1b89943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/tools/verifast.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ programs.
3737

3838
## Verifying `unsafe` functions
3939

40-
Consider, for example, the function `Node::reverse` below that reverses the
40+
Consider, for example, the function `Node::reverse_in_place` below that reverses the
4141
given linked list in-place and returns a pointer to the first node (which
4242
was the originally the last node).
4343

@@ -59,7 +59,7 @@ pred Nodes(n: *mut Node; nodes: list<*mut Node>) =
5959

6060
impl Node {
6161

62-
unsafe fn reverse(mut n: *mut Node) -> *mut Node
62+
unsafe fn reverse_in_place(mut n: *mut Node) -> *mut Node
6363
//@ req Nodes(n, ?nodes);
6464
//@ ens Nodes(result, reverse(nodes));
6565
//@ on_unwind_ens false;

0 commit comments

Comments
 (0)