]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12871 : aochagavia/rust/Optimize-while_some, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 14 Mar 2014 11:06:31 +0000 (04:06 -0700)
committerbors <bors@rust-lang.org>
Fri, 14 Mar 2014 11:06:31 +0000 (04:06 -0700)
The old 'while' needed to match 2 times for each iteration. With the new 'loop' there is just one match needed.

I have also replaced 'blk' by 'f' to be more consistent with parameter names in other functions that are implemented for Option<T>

1  2 
src/libstd/option.rs

Simple merge