diff --git a/doc/rust.md b/doc/rust.md index 99afbccc7438..8c39fab28e79 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 } } ~~~~~~