about summary refs log tree commit diff
path: root/doc/tutorial.md
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-08-17 22:47:54 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-08-20 22:05:03 -0400
commit46fc549fa98d473f925b04e53d08f26c2e15bc2a (patch)
treeece6425698c9bf30a637e4cffc5b5a4fb721083b /doc/tutorial.md
parent0d72f604b7da4f03e7b30466af6b8b55f16c207b (diff)
rm obsolete integer to_str{,_radix} free functions
Diffstat (limited to 'doc/tutorial.md')
-rw-r--r--doc/tutorial.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 1813356a1f3..958c1573761 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -555,12 +555,11 @@ while cake_amount > 0 {
 `loop` denotes an infinite loop, and is the preferred way of writing `while true`:
 
 ~~~~
-use std::int;
-let mut x = 5;
+let mut x = 5u;
 loop {
     x += x - 3;
     if x % 5 == 0 { break; }
-    println(int::to_str(x));
+    println(x.to_str());
 }
 ~~~~