about summary refs log tree commit diff
path: root/src/libstd/condition.rs
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-01-09 21:06:55 +1100
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-01-11 10:46:00 +1100
commit4fc0452acef1355ba566a30c5bd04ccd3b9acef2 (patch)
treea11738f6d30837655498a8b7d2197bf01452a8f3 /src/libstd/condition.rs
parentff7ecca20e116b8365d8095fa9618dc11e54cfbe (diff)
downloadrust-4fc0452acef1355ba566a30c5bd04ccd3b9acef2.tar.gz
rust-4fc0452acef1355ba566a30c5bd04ccd3b9acef2.zip
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.
Diffstat (limited to 'src/libstd/condition.rs')
-rw-r--r--src/libstd/condition.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/condition.rs b/src/libstd/condition.rs
index 2ecae8e85d0..e0dc5c8b65d 100644
--- a/src/libstd/condition.rs
+++ b/src/libstd/condition.rs
@@ -51,8 +51,8 @@ my_error::cond.trap(|raised_int| {
     // condition, then the above handler will be invoked (so long as there's no
     // other nested handler).
 
-    println(my_error::cond.raise(3)); // prints "three"
-    println(my_error::cond.raise(4)); // prints "oh well"
+    println!("{}", my_error::cond.raise(3)); // prints "three"
+    println!("{}", my_error::cond.raise(4)); // prints "oh well"
 
 })