Rename "to_str" to "make_string" in the docs

There's already a "to_str" impl for string, so it fails here.
This commit is contained in:
Andrew Dunham 2012-12-13 20:07:58 -05:00
parent 4c2e4c37ce
commit 08b1c841da

View File

@ -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 impl item. It refers to the type of the implicit `self` argument. For
example, in: example, in:
~~~~~~~~{.xfail-test} ~~~~~~~~
trait Printable { trait Printable {
fn to_str() -> ~str; fn make_string() -> ~str;
} }
impl ~str: Printable { 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 `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 ## Type kinds