about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorPalmer Cox <p@lmercox.com>2014-02-19 22:05:31 -0500
committerPalmer Cox <p@lmercox.com>2014-02-19 22:08:57 -0500
commitbb6fc34b37991f2fea4f584d419d464efe9bbc05 (patch)
treec2a45ad14ee6455f92933491eab805c3c3af1b9e /src/libstd
parent879e8aa7be06a53cd6cd9cc714e85a13c909c0ea (diff)
downloadrust-bb6fc34b37991f2fea4f584d419d464efe9bbc05.tar.gz
rust-bb6fc34b37991f2fea4f584d419d464efe9bbc05.zip
Update comments in the prelude
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.
Diffstat (limited to 'src/libstd')
-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.
 
 */