From aa8c827bd977ca49630c43f4d124a774627ef2f1 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 13 Jul 2012 10:20:10 -0700 Subject: [PATCH] update tutorial example to new syntax for unique strs --- doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index 3f5c22f3404..403b44e21a9 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -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); ~~~~