diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-09-08 10:52:19 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-09-08 10:52:19 +1000 |
| commit | 4c2b480aae2abb87e617076ee3f672f5c851d7d0 (patch) | |
| tree | e56f60b1fa35b3f157b21a1879dbb03080d8f4e2 /src/test | |
| parent | b3d50fc2c015cc8a335855b82ab458a15a7413d9 (diff) | |
| download | rust-4c2b480aae2abb87e617076ee3f672f5c851d7d0.tar.gz rust-4c2b480aae2abb87e617076ee3f672f5c851d7d0.zip | |
std: Rename Unfoldr to Unfold.
The `r` is not relevant, since there is only one direction of folding (unlike Haskell).
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/unfold-cross-crate.rs (renamed from src/test/run-pass/unfoldr-cross-crate.rs) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/unfoldr-cross-crate.rs b/src/test/run-pass/unfold-cross-crate.rs index 2471aee3c21..64cf3077c53 100644 --- a/src/test/run-pass/unfoldr-cross-crate.rs +++ b/src/test/run-pass/unfold-cross-crate.rs @@ -10,7 +10,7 @@ use std::iterator::*; -// Unfoldr had a bug with 'self that mean it didn't work +// Unfold had a bug with 'self that mean it didn't work // cross-crate fn main() { @@ -24,7 +24,7 @@ fn main() { } } - let mut it = Unfoldr::new(0, count); + let mut it = Unfold::new(0, count); let mut i = 0; for counted in it { assert_eq!(counted, i); |
