diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-08-01 03:16:42 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-08-01 05:34:55 -0400 |
| commit | 1fc4db2d086fd068a934c9ed2ccf25456fedc216 (patch) | |
| tree | 8e96cbc62b80bd622f78cf68b0bb29cb14ebc417 /src/test/run-pass/overload-index-operator.rs | |
| parent | 5f59c46e0f5605a0cc90ebdb26b4d258a8f7b43a (diff) | |
| download | rust-1fc4db2d086fd068a934c9ed2ccf25456fedc216.tar.gz rust-1fc4db2d086fd068a934c9ed2ccf25456fedc216.zip | |
migrate many `for` loops to `foreach`
Diffstat (limited to 'src/test/run-pass/overload-index-operator.rs')
| -rw-r--r-- | src/test/run-pass/overload-index-operator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/overload-index-operator.rs b/src/test/run-pass/overload-index-operator.rs index 824cacc620d..706168844f5 100644 --- a/src/test/run-pass/overload-index-operator.rs +++ b/src/test/run-pass/overload-index-operator.rs @@ -31,7 +31,7 @@ impl<K,V> AssociationList<K,V> { impl<K:Eq,V:Clone> Index<K,V> for AssociationList<K,V> { fn index(&self, index: &K) -> V { - for self.pairs.iter().advance |pair| { + foreach pair in self.pairs.iter() { if pair.key == *index { return pair.value.clone(); } |
