From 46fc549fa98d473f925b04e53d08f26c2e15bc2a Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 17 Aug 2013 22:47:54 -0400 Subject: rm obsolete integer to_str{,_radix} free functions --- doc/tutorial.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'doc/tutorial.md') 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()); } ~~~~ -- cgit 1.4.1-3-g733a5