From a8d62280f6814aa14c227f8f1208a2395510f354 Mon Sep 17 00:00:00 2001 From: Olivier Yiptong Date: Fri, 27 Jul 2012 14:56:34 -0400 Subject: [PATCH] make hello world example in tutorial compile --- doc/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index fbb1ca416e4cd..25077b09d5e35 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -209,8 +209,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] + "'!"); } ~~~~