about summary refs log tree commit diff
path: root/src/doc/tutorial.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/tutorial.md')
-rw-r--r--src/doc/tutorial.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md
index 1c915b0d7dc..2a59e3a756a 100644
--- a/src/doc/tutorial.md
+++ b/src/doc/tutorial.md
@@ -2236,7 +2236,7 @@ impl Printable for String {
 }
 
 # 1.print();
-# ("foo".to_strbuf()).print();
+# ("foo".to_string()).print();
 ~~~~
 
 Methods defined in an impl for a trait may be called just like
@@ -2286,7 +2286,7 @@ impl Printable for bool {}
 impl Printable for f32 {}
 
 # 1.print();
-# ("foo".to_strbuf()).print();
+# ("foo".to_string()).print();
 # true.print();
 # 3.14159.print();
 ~~~~