update tutorial example to new syntax for unique strs

This commit is contained in:
Niko Matsakis 2012-07-13 10:20:10 -07:00
parent 4c463b78fb
commit aa8c827bd9

View File

@ -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.
~~~~
# fn work_with_foo_by_pointer(f: &str/~) { }
# fn work_with_foo_by_pointer(f: &~str) { }
let foo = "foo";
work_with_foo_by_pointer(&foo);
~~~~