diff options
| author | bors <bors@rust-lang.org> | 2015-04-26 21:07:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-04-26 21:07:41 +0000 |
| commit | e4b80647c8d3f1d41b1e8467e2a04e09d0c67b03 (patch) | |
| tree | 8812f2c6c854e4f233c558a5959945faae91b624 | |
| parent | bba18fec45b0764c1c65b8f0d3ea1fb50ad8a57b (diff) | |
| parent | a249910d3417160e2f871bc5a5200bec6b11f518 (diff) | |
| download | rust-e4b80647c8d3f1d41b1e8467e2a04e09d0c67b03.tar.gz rust-e4b80647c8d3f1d41b1e8467e2a04e09d0c67b03.zip | |
Auto merge of #24839 - frewsxcv:patch-17, r=steveklabnik
| -rw-r--r-- | src/libcollections/vec.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 526150915a7..c8a8498d2f9 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -116,11 +116,7 @@ static MAX_MEMORY_SIZE: usize = isize::MAX as usize; /// stack.push(2); /// stack.push(3); /// -/// loop { -/// let top = match stack.pop() { -/// None => break, // empty -/// Some(x) => x, -/// }; +/// while let Some(top) = stack.pop() { /// // Prints 3, 2, 1 /// println!("{}", top); /// } |
