We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 885bdf7 + 08b1c84 commit 55c9cf7Copy full SHA for 55c9cf7
doc/rust.md
@@ -2719,18 +2719,18 @@ The special type `self` has a meaning within methods inside an
2719
impl item. It refers to the type of the implicit `self` argument. For
2720
example, in:
2721
2722
-~~~~~~~~{.xfail-test}
+~~~~~~~~
2723
trait Printable {
2724
- fn to_str() -> ~str;
+ fn make_string() -> ~str;
2725
}
2726
2727
impl ~str: Printable {
2728
- fn to_str() -> ~str { copy self }
+ fn make_string() -> ~str { copy self }
2729
2730
~~~~~~~~
2731
2732
`self` refers to the value of type `~str` that is the receiver for a
2733
-call to the method `to_str`.
+call to the method `make_string`.
2734
2735
## Type kinds
2736
0 commit comments