diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-01 17:30:05 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-01 19:16:06 -0700 |
| commit | b355936b4da0831f47afe8f251daee503c8caa32 (patch) | |
| tree | 9f870e26f773af714cbcf7f315de5ff3722300c3 /src/libcore/ptr.rs | |
| parent | dc499f193e473abc78c557feaa86969bbe7aa159 (diff) | |
Convert ret to return
Diffstat (limited to 'src/libcore/ptr.rs')
| -rw-r--r-- | src/libcore/ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index cc60d18af21..d82c46832fe 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -79,7 +79,7 @@ unsafe fn buf_len<T>(buf: **T) -> uint { unsafe fn position<T>(buf: *T, f: fn(T) -> bool) -> uint { let mut i = 0u; loop { - if f(*offset(buf, i)) { ret i; } + if f(*offset(buf, i)) { return i; } else { i += 1u; } } } |
