From 08b1c841daa401afb9516987ceb07906615c4a1d Mon Sep 17 00:00:00 2001 From: Andrew Dunham Date: Thu, 13 Dec 2012 20:07:58 -0500 Subject: [PATCH] Rename "to_str" to "make_string" in the docs There's already a "to_str" impl for string, so it fails here. --- doc/rust.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index a17e3dcd230..d7f5c10b5d6 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -2719,18 +2719,18 @@ The special type `self` has a meaning within methods inside an impl item. It refers to the type of the implicit `self` argument. For example, in: -~~~~~~~~{.xfail-test} +~~~~~~~~ trait Printable { - fn to_str() -> ~str; + fn make_string() -> ~str; } impl ~str: Printable { - fn to_str() -> ~str { copy self } + fn make_string() -> ~str { copy self } } ~~~~~~~~ `self` refers to the value of type `~str` that is the receiver for a -call to the method `to_str`. +call to the method `make_string`. ## Type kinds