about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-10 18:21:21 -0800
committerbors <bors@rust-lang.org>2014-01-10 18:21:21 -0800
commita34727f27657cbed71fb2326dc6f1766fee95a4c (patch)
treef6f124acf2ae8f6ab5808ce3ddb7c99a6cd35285 /src/libsyntax/parse
parent5a6ca45c8ad26f1ace1c46e6452155d511d065d8 (diff)
parent4fc0452acef1355ba566a30c5bd04ccd3b9acef2 (diff)
downloadrust-a34727f27657cbed71fb2326dc6f1766fee95a4c.tar.gz
rust-a34727f27657cbed71fb2326dc6f1766fee95a4c.zip
auto merge of #11416 : bjz/rust/remove-print-fns, r=alexcrichton
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.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer.rs2
1 files changed, 1 insertions, 1 deletions
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{