From bbc04dbb244d4789f4e76ddae9b48ea79e32dfb3 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 7 Dec 2012 14:40:56 -0800 Subject: [PATCH] doc: fix busted doctest, r=burningtree. --- doc/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } ~~~~~~