Skip to content

Commit e4b8064

Browse files
committed
Auto merge of #24839 - frewsxcv:patch-17, r=steveklabnik
2 parents bba18fe + a249910 commit e4b8064

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libcollections/vec.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ static MAX_MEMORY_SIZE: usize = isize::MAX as usize;
116116
/// stack.push(2);
117117
/// stack.push(3);
118118
///
119-
/// loop {
120-
/// let top = match stack.pop() {
121-
/// None => break, // empty
122-
/// Some(x) => x,
123-
/// };
119+
/// while let Some(top) = stack.pop() {
124120
/// // Prints 3, 2, 1
125121
/// println!("{}", top);
126122
/// }

0 commit comments

Comments
 (0)