about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/rust.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 99afbccc743..8c39fab28e7 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -2710,7 +2710,7 @@ trait Printable {
 }
 
 impl ~str: Printable {
-  fn to_str() -> ~str { self }
+  fn to_str() -> ~str { copy self }
 }
 ~~~~~~