Skip to content

Commit 91bc13c

Browse files
committed
---
yaml --- r: 73696 b: refs/heads/dist-snap c: 846545a h: refs/heads/master v: v3
1 parent a50654e commit 91bc13c

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10-
refs/heads/dist-snap: 8a43b318bf30c26f4e9f3557b6c7036fcb9d5342
10+
refs/heads/dist-snap: 846545a6e19745dddcbefb1e690a63eea15a0884
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libstd/prelude.rs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,24 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

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+
1229

1330
// Reexported core operators
1431
pub use either::{Either, Left, Right};

0 commit comments

Comments
 (0)