We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cb147a commit 6ac86e9Copy full SHA for 6ac86e9
src/libcore/uint-template/uint.rs
@@ -71,7 +71,7 @@ pure fn hash(&&x: uint) -> uint { ret x; }
71
* `true` If execution proceeded correctly, `false` if it was interrupted,
72
* that is if `it` returned `false` at any point.
73
*/
74
-fn iterate(lo: uint, hi: uint, it: fn(uint) -> bool) -> bool {
+pure fn iterate(lo: uint, hi: uint, it: fn(uint) -> bool) -> bool {
75
let mut i = lo;
76
while i < hi {
77
if (!it(i)) { ret false; }
0 commit comments