diff options
| author | gifnksm <makoto.nksm+github@gmail.com> | 2013-05-12 07:56:08 +0900 |
|---|---|---|
| committer | gifnksm <makoto.nksm+github@gmail.com> | 2013-05-12 08:06:31 +0900 |
| commit | 82f963e347fa16ac3824e81c53f5d15155fe319b (patch) | |
| tree | ac37842eaa85aafa4b1dc0ce77a77201206486aa /src/libcore/old_iter.rs | |
| parent | 8ca64a423bea5dd9f4149fe343f7cec87e25316c (diff) | |
| download | rust-82f963e347fa16ac3824e81c53f5d15155fe319b.tar.gz rust-82f963e347fa16ac3824e81c53f5d15155fe319b.zip | |
libcore: Change `each_val` to follow new for-loop protocol
Diffstat (limited to 'src/libcore/old_iter.rs')
| -rw-r--r-- | src/libcore/old_iter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/old_iter.rs b/src/libcore/old_iter.rs index 8e31bbfd878..a596b07dc78 100644 --- a/src/libcore/old_iter.rs +++ b/src/libcore/old_iter.rs @@ -93,7 +93,7 @@ pub trait CopyableNonstrictIter<A:Copy> { // Like "each", but copies out the value. If the receiver is mutated while // iterating over it, the semantics must not be memory-unsafe but are // otherwise undefined. - fn each_val(&const self, f: &fn(A) -> bool); + fn each_val(&const self, f: &fn(A) -> bool) -> bool; } // A trait for sequences that can be built by imperatively pushing elements |
