From 15f84bcc2be4d317b4826ddccc28587f0522e782 Mon Sep 17 00:00:00 2001 From: Francisco Souza Date: Sat, 21 Jul 2012 22:59:38 -0300 Subject: [PATCH] doc: fix code for hello world example Closes #2986. --- doc/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index 80c39ded41cbe..dc0ec893636ef 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -206,8 +206,8 @@ Rust program files are, by convention, given the extension `.rs`. Say we have a file `hello.rs` containing this program: ~~~~ -fn main(args: ~[~str]) { - io::println(~"hello world from '" + args[0] + ~"'!"); +fn main(args: ~[str]) { + io::println("hello world from '" + args[0] + "'!"); } ~~~~