Skip to content

Commit f2b3c43

Browse files
committed
---
yaml --- r: 275727 b: refs/heads/master c: 322f3a3 h: refs/heads/master i: 275725: f30fb2d 275723: e39baa7 275719: 0611bee 275711: d044d52
1 parent b5fa10a commit f2b3c43

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 253b7c1e1a919a6b722c29a04241d6f08ff8c79a
2+
refs/heads/master: 322f3a3eaac6cbaa3b1e85bca0402d0ff2b6779f
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/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.

trunk/src/libcore/iter/iterator.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,13 +598,13 @@ pub trait Iterator {
598598
/// # Examples
599599
///
600600
/// ```
601-
/// let a = ['a', 'b', 'c'];
601+
/// let a = [1, 2, 3];
602602
///
603603
/// let mut iter = a.iter().enumerate();
604604
///
605-
/// assert_eq!(iter.next(), Some((0, &'a')));
606-
/// assert_eq!(iter.next(), Some((1, &'b')));
607-
/// assert_eq!(iter.next(), Some((2, &'c')));
605+
/// assert_eq!(iter.next(), Some((0, &1)));
606+
/// assert_eq!(iter.next(), Some((1, &2)));
607+
/// assert_eq!(iter.next(), Some((2, &3)));
608608
/// assert_eq!(iter.next(), None);
609609
/// ```
610610
#[inline]
@@ -2109,3 +2109,4 @@ 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+

trunk/src/rustc/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)