about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-12-07 14:40:56 -0800
committerGraydon Hoare <graydon@mozilla.com>2012-12-07 14:40:56 -0800
commitbbc04dbb244d4789f4e76ddae9b48ea79e32dfb3 (patch)
treeb8545b99907ed53b20de5d905c09f8ef19d49046
parentd78053ecb04f7bb1211d566dce72ba581c92ebf8 (diff)
downloadrust-bbc04dbb244d4789f4e76ddae9b48ea79e32dfb3.tar.gz
rust-bbc04dbb244d4789f4e76ddae9b48ea79e32dfb3.zip
doc: fix busted doctest, r=burningtree.
-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 }
 }
 ~~~~~~