Skip to content

Commit 280722e

Browse files
committed
---
yaml --- r: 236122 b: refs/heads/stable c: ddb0290 h: refs/heads/master v: v3
1 parent 49e5dbb commit 280722e

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 4c48ffa53e7b9aa008bed5ac92a8362c0574172e
32+
refs/heads/stable: ddb029034b734ec078589724c45e6eb8bf2e6645
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/doc/tarpl/borrow-splitting.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ impl<'a, T> Iterator for IterMut<'a, T> {
137137
Here's a mutable slice:
138138

139139
```rust
140+
# fn main() {}
140141
use std::mem;
141142

142143
pub struct IterMut<'a, T: 'a>(&'a mut[T]);
@@ -170,6 +171,7 @@ impl<'a, T> DoubleEndedIterator for IterMut<'a, T> {
170171
And here's a binary tree:
171172

172173
```rust
174+
# fn main() {}
173175
use std::collections::VecDeque;
174176

175177
type Link<T> = Option<Box<Node<T>>>;
@@ -262,7 +264,7 @@ impl<'a, T> Iterator for IterMut<'a, T> {
262264
}
263265

264266
impl<'a, T> DoubleEndedIterator for IterMut<'a, T> {
265-
fn next(&mut self) -> Option<Self::Item> {
267+
fn next_back(&mut self) -> Option<Self::Item> {
266268
loop {
267269
match self.0.back_mut().and_then(|node_it| node_it.next_back()) {
268270
Some(State::Elem(elem)) => return Some(elem),

branches/stable/src/doc/tarpl/dropck.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ when we talked about `'a: 'b`, it was ok for `'a` to live *exactly* as long as
88
gets dropped at the same time as another, right? This is why we used the
99
following desugarring of `let` statements:
1010

11-
```rust
11+
```rust,ignore
1212
let x;
1313
let y;
1414
```
1515

16-
```rust
16+
```rust,ignore
1717
{
1818
let x;
1919
{
@@ -25,7 +25,7 @@ let y;
2525
Each creates its own scope, clearly establishing that one drops before the
2626
other. However, what if we do the following?
2727

28-
```rust
28+
```rust,ignore
2929
let (x, y) = (vec![], vec![]);
3030
```
3131

branches/stable/src/doc/tarpl/leaking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ data on their parent's stack without any synchronization over that data by
188188
ensuring the parent joins the thread before any of the shared data goes out
189189
of scope.
190190

191-
```rust
191+
```rust,ignore
192192
pub fn scoped<'a, F>(f: F) -> JoinGuard<'a>
193193
where F: FnOnce() + Send + 'a
194194
```

branches/stable/src/doc/tarpl/safe-unsafe-meaning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ implementation:
114114
```rust
115115
# use std::cmp::Ordering;
116116
# struct MyType;
117-
# pub unsafe trait UnsafeOrd { fn cmp(&self, other: &Self) -> Ordering; }
117+
# unsafe trait UnsafeOrd { fn cmp(&self, other: &Self) -> Ordering; }
118118
unsafe impl UnsafeOrd for MyType {
119119
fn cmp(&self, other: &Self) -> Ordering {
120120
Ordering::Equal

branches/stable/src/doc/tarpl/vec-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ pub struct Vec<T> {
1212
cap: usize,
1313
len: usize,
1414
}
15-
1615
# fn main() {}
1716
```
1817

@@ -69,6 +68,7 @@ impl<T> Deref for Unique<T> {
6968
unsafe { mem::transmute(&self.ptr) }
7069
}
7170
}
71+
# fn main() {}
7272
```
7373

7474
Unfortunately the mechanism for stating that your value is non-zero is

0 commit comments

Comments
 (0)