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.
This commit is contained in:
parent
ff7ecca20e
commit
4fc0452ace
130 changed files with 350 additions and 336 deletions
|
@ -17,7 +17,7 @@ use extra::arc::Arc;
|
|||
struct A { y: Arc<int>, x: Arc<int> }
|
||||
|
||||
impl Drop for A {
|
||||
fn drop(&mut self) { println(format!("x={:?}", self.x.get())); }
|
||||
fn drop(&mut self) { println!("x={:?}", self.x.get()); }
|
||||
}
|
||||
fn main() {
|
||||
let a = A { y: Arc::new(1), x: Arc::new(2) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue