From 4fc0452acef1355ba566a30c5bd04ccd3b9acef2 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Thu, 9 Jan 2014 21:06:55 +1100 Subject: Remove re-exports of std::io::stdio::{print, println} in the prelude. The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using. --- src/libsyntax/parse/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 9304b842294..4cd64331f9a 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -983,7 +983,7 @@ mod test { #[test] fn t1 () { let Env {string_reader} = setup(@"/* my source file */ \ - fn main() { io::println(~\"zebra\"); }\n"); + fn main() { println!(\"zebra\"); }\n"); let id = str_to_ident("fn"); let tok1 = string_reader.next_token(); let tok2 = TokenAndSpan{ -- cgit 1.4.1-3-g733a5