about summary refs log tree commit diff
path: root/src/doc/rust.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/rust.md')
-rw-r--r--src/doc/rust.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md
index f09214d1a6f..9d5a6fa42a8 100644
--- a/src/doc/rust.md
+++ b/src/doc/rust.md
@@ -3671,15 +3671,15 @@ An example of an object type:
 
 ~~~~
 trait Printable {
-  fn to_string(&self) -> String;
+  fn stringify(&self) -> String;
 }
 
 impl Printable for int {
-  fn to_string(&self) -> String { self.to_str() }
+  fn stringify(&self) -> String { self.to_string() }
 }
 
 fn print(a: Box<Printable>) {
-   println!("{}", a.to_string());
+   println!("{}", a.stringify());
 }
 
 fn main() {