Auto merge of #24839 - frewsxcv:patch-17, r=steveklabnik

This commit is contained in:
bors 2015-04-26 21:07:41 +00:00
commit e4b80647c8

View File

@ -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);
/// }