]> git.lizzy.rs Git - rust.git/commit
Fix Iterator::fuse example
authorSteven Fackler <sfackler@gmail.com>
Fri, 26 Sep 2014 06:02:28 +0000 (23:02 -0700)
committerSteven Fackler <sfackler@gmail.com>
Fri, 26 Sep 2014 06:06:34 +0000 (23:06 -0700)
commita4844a65e282a7f603dbc20f63476dff28d84d33
tree49f2c678368c800f61d9193bef218b694ccbc5e2
parente31680ac2d2f246fedfd6ac2f02a1d38fbd6f613
Fix Iterator::fuse example

The for loop would *always* exaust the iterator previously, which seems
like behavior that was not intended. It's still kind of a weird
function.
src/libcore/iter.rs