about summary refs log tree commit diff
path: root/src/libcore/uint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/uint.rs')
-rw-r--r--src/libcore/uint.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/uint.rs b/src/libcore/uint.rs
index 69981d2e980..776965d350a 100644
--- a/src/libcore/uint.rs
+++ b/src/libcore/uint.rs
@@ -138,7 +138,7 @@ fn range(lo: uint, hi: uint, it: fn(uint)) {
 }
 
 /*
-Function: loop
+Function: iterate
 
 Iterate over the range [`lo`..`hi`), or stop when requested
 
@@ -153,7 +153,7 @@ Returns:
 `true` If execution proceeded correctly, `false` if it was interrupted,
 that is if `it` returned `false` at any point.
 */
-fn loop(lo: uint, hi: uint, it: fn(uint) -> bool) -> bool {
+fn iterate(lo: uint, hi: uint, it: fn(uint) -> bool) -> bool {
     let mut i = lo;
     while i < hi {
         if (!it(i)) { ret false; }