Skip to content

Commit 3bb5d6d

Browse files
committed
---
yaml --- r: 275865 b: refs/heads/auto c: cfae4de h: refs/heads/master i: 275863: 0c5b2b5
1 parent 2a27d43 commit 3bb5d6d

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 847d195e3c80e9de4f4acb141884f2fd12c9263d
11+
refs/heads/auto: cfae4dea875ddcc5f23481106a149ea15b6be1e5
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/doc/book/const-and-static.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ the result of a function call or anything similarly complex or at runtime.
7979

8080
Almost always, if you can choose between the two, choose `const`. It’s pretty
8181
rare that you actually want a memory location associated with your constant,
82-
and using a const allows for optimizations like constant propagation not only
82+
and using a `const` allows for optimizations like constant propagation not only
8383
in your crate but downstream crates.

branches/auto/src/libcore/iter/iterator.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,13 +598,13 @@ pub trait Iterator {
598598
/// # Examples
599599
///
600600
/// ```
601-
/// let a = [1, 2, 3];
601+
/// let a = ['a', 'b', 'c'];
602602
///
603603
/// let mut iter = a.iter().enumerate();
604604
///
605-
/// assert_eq!(iter.next(), Some((0, &1)));
606-
/// assert_eq!(iter.next(), Some((1, &2)));
607-
/// assert_eq!(iter.next(), Some((2, &3)));
605+
/// assert_eq!(iter.next(), Some((0, &'a')));
606+
/// assert_eq!(iter.next(), Some((1, &'b')));
607+
/// assert_eq!(iter.next(), Some((2, &'c')));
608608
/// assert_eq!(iter.next(), None);
609609
/// ```
610610
#[inline]
@@ -2109,4 +2109,3 @@ impl<'a, I: Iterator + ?Sized> Iterator for &'a mut I {
21092109
fn next(&mut self) -> Option<I::Item> { (**self).next() }
21102110
fn size_hint(&self) -> (usize, Option<usize>) { (**self).size_hint() }
21112111
}
2112-

0 commit comments

Comments
 (0)