File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: 26e4680ae52bb98517cff07ff89446c5010db01e
9
+ refs/heads/dist-snap: c9ab33a8fde708c8a4cf70b03f5d69370220665c
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change 54
54
//! containers that can be cloned and shared between multiple parties.
55
55
//! Because the contained values may be multiply-aliased, they can
56
56
//! only be borrowed as shared references, not mutable references.
57
- //! Without cells then it would be impossible to mutate data inside of
57
+ //! Without cells it would be impossible to mutate data inside of
58
58
//! shared boxes at all!
59
59
//!
60
60
//! It's very common then to put a `RefCell` inside shared pointer
104
104
//! // Take a reference to the inside of cache cell
105
105
//! let mut cache = self.span_tree_cache.borrow_mut();
106
106
//! if cache.is_some() {
107
- //! return cache.take_unwrap ().clone();
107
+ //! return cache.get_ref ().clone();
108
108
//! }
109
109
//!
110
110
//! let span_tree = self.calc_span_tree();
118
118
//! // This is the major hazard of using `RefCell`.
119
119
//! self.minimum_spanning_tree()
120
120
//! }
121
- //! # fn calc_span_tree(&self) -> Vec<(uint, uint)> { vec!() }
121
+ //! # fn calc_span_tree(&self) -> Vec<(uint, uint)> { vec![] }
122
122
//! }
123
123
//! # fn main() { }
124
124
//! ```
125
125
//!
126
126
//! ## Mutating implementations of `clone`
127
127
//!
128
- //! This is simply a special - bot common - case of the previous:
128
+ //! This is simply a special - but common - case of the previous:
129
129
//! hiding mutability for operations that appear to be immutable.
130
130
//! The `clone` method is expected to not change the source value, and
131
131
//! is declared to take `&self`, not `&mut self`. Therefore any
Original file line number Diff line number Diff line change 14
14
//! Rust Standard Library](../std/index.html). It is the portable glue
15
15
//! between the language and its libraries, defining the intrinsic and
16
16
//! primitive building blocks of all Rust code. It links to no
17
- //! upstream libraries, no system libraries, no libc.
17
+ //! upstream libraries, no system libraries, and no libc.
18
18
//!
19
19
//! The core library is *minimal*: it isn't even aware of heap allocation,
20
20
//! nor does it provide concurrency or I/O. These things require
21
- //! platform integration, and this library is platform-oblivious .
21
+ //! platform integration, and this library is platform-agnostic .
22
22
//!
23
23
//! *It is not recommended to use the core library*. The stable
24
24
//! functionality of libcore is reexported from the
Original file line number Diff line number Diff line change 16
16
//!
17
17
//! ## Intrinsic types and operations
18
18
//!
19
- //! The [`ptr`](../core/ptr/index.html), [`mem`](../core/mem/index.html),
19
+ //! The [`ptr`](../core/ptr/index.html) and [`mem`](../core/mem/index.html)
20
20
//! modules deal with unsafe pointers and memory manipulation.
21
21
//! [`kinds`](../core/kinds/index.html) defines the special built-in traits,
22
22
//! and [`raw`](../core/raw/index.html) the runtime representation of Rust types.
You can’t perform that action at this time.
0 commit comments