Skip to content

Commit aa8c827

Browse files
committed
update tutorial example to new syntax for unique strs
1 parent 4c463b7 commit aa8c827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ imply ownership. Pointers may be borrowed from any type, in which case
13471347
the pointer is guaranteed not to outlive the value it points to.
13481348
13491349
~~~~
1350-
# fn work_with_foo_by_pointer(f: &str/~) { }
1350+
# fn work_with_foo_by_pointer(f: &~str) { }
13511351
let foo = "foo";
13521352
work_with_foo_by_pointer(&foo);
13531353
~~~~

0 commit comments

Comments
 (0)