Skip to content

Commit 6ac86e9

Browse files
committed
Make uint::iterate pure
1 parent 3cb147a commit 6ac86e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/uint-template/uint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pure fn hash(&&x: uint) -> uint { ret x; }
7171
* `true` If execution proceeded correctly, `false` if it was interrupted,
7272
* that is if `it` returned `false` at any point.
7373
*/
74-
fn iterate(lo: uint, hi: uint, it: fn(uint) -> bool) -> bool {
74+
pure fn iterate(lo: uint, hi: uint, it: fn(uint) -> bool) -> bool {
7575
let mut i = lo;
7676
while i < hi {
7777
if (!it(i)) { ret false; }

0 commit comments

Comments
 (0)