mozilla/rust — pull request #12871 by aochagavia (2014-03-13 20:32:12+00:00)
Title: Refactored while_some (libstd/option.rs)

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