update tutorial example to new syntax for unique strs
This commit is contained in:
parent
4c463b78fb
commit
aa8c827bd9
1 changed files with 1 additions and 1 deletions
|
@ -1347,7 +1347,7 @@ imply ownership. Pointers may be borrowed from any type, in which case
|
||||||
the pointer is guaranteed not to outlive the value it points to.
|
the pointer is guaranteed not to outlive the value it points to.
|
||||||
|
|
||||||
~~~~
|
~~~~
|
||||||
# fn work_with_foo_by_pointer(f: &str/~) { }
|
# fn work_with_foo_by_pointer(f: &~str) { }
|
||||||
let foo = "foo";
|
let foo = "foo";
|
||||||
work_with_foo_by_pointer(&foo);
|
work_with_foo_by_pointer(&foo);
|
||||||
~~~~
|
~~~~
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue