about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-21 04:01:57 -0800
committerbors <bors@rust-lang.org>2014-02-21 04:01:57 -0800
commitc9864cec2be8af2090a83355dc8894ccdb9a73d4 (patch)
tree26685c8577ca1cdbd91602a135b3a31f429c256a
parent37903cbf4dbf71a5cd11ffb8444528cad297e30d (diff)
parentbb6fc34b37991f2fea4f584d419d464efe9bbc05 (diff)
downloadrust-c9864cec2be8af2090a83355dc8894ccdb9a73d4.tar.gz
rust-c9864cec2be8af2090a83355dc8894ccdb9a73d4.zip
auto merge of #12410 : DaGenix/rust/fix-incorrect-comment, r=alexcrichton
The comments say that the prelude imports std::io::println since it would
be annoying to have to import it in every program that uses it. However,
the prelude doesn't actually import that function anymore. So, update the
comments to better match reality.
-rw-r--r--src/libstd/prelude.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/libstd/prelude.rs b/src/libstd/prelude.rs
index e2b62725043..3f61f2484a5 100644
--- a/src/libstd/prelude.rs
+++ b/src/libstd/prelude.rs
@@ -14,17 +14,8 @@ The standard module imported by default into all Rust modules
 
 Many programming languages have a 'prelude': a particular subset of the
 libraries that come with the language. Every program imports the prelude by
-default.
-
-For example, it would be annoying to add `use std::io::println;` to every single
-program, and the vast majority of Rust programs will wish to print to standard
-output. Therefore, it makes sense to import it into every program.
-
-Rust's prelude has three main parts:
-
-1. io::print and io::println.
-2. Core operators, such as `Add`, `Mul`, and `Not`.
-3. Various types and traits, such as `Clone`, `Eq`, and `comm::Chan`.
+default. The prelude imports various core parts of the library that are
+generally useful to many Rust programs.
 
 */