Skip to content

Commit bbc04db

Browse files
committed
doc: fix busted doctest, r=burningtree.
1 parent d78053e commit bbc04db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ trait Printable {
27102710
}
27112711
27122712
impl ~str: Printable {
2713-
fn to_str() -> ~str { self }
2713+
fn to_str() -> ~str { copy self }
27142714
}
27152715
~~~~~~
27162716

0 commit comments

Comments
 (0)