File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
branches/snap-stage3/src/libstd Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 8a43b318bf30c26f4e9f3557b6c7036fcb9d5342
4
+ refs/heads/snap-stage3: 846545a6e19745dddcbefb1e690a63eea15a0884
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- //! The Rust prelude. Imported into every module by default.
11
+ /*!
12
+
13
+ Many programming languages have a 'prelude': a particular subset of the
14
+ libraries that come with the language. Every program imports the prelude by
15
+ default.
16
+
17
+ For example, it would be annoying to add `use io::println;` to every single
18
+ program, and the vast majority of Rust programs will wish to print to standard
19
+ output. Therefore, it makes sense to import it into every program.
20
+
21
+ Rust's prelude has three main parts:
22
+
23
+ 1. io::print and io::println.
24
+ 2. Core operators, such as `Add`, `Mul`, and `Not`.
25
+ 3. Various types and traits, such as `Clone`, `Eq`, and `comm::Chan`.
26
+
27
+ */
28
+
12
29
13
30
// Reexported core operators
14
31
pub use either:: { Either , Left , Right } ;
You can’t perform that action at this time.
0 commit comments