diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-07 15:44:21 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-11 09:35:58 -0700 |
| commit | bd2d17e4a1f75bc7e451fc1054d98ff13c456850 (patch) | |
| tree | 4786d560c72b34b8725be337a677c4c6b8a47508 /src/libcore/num | |
| parent | d18f7854578e8c2e1d7dce90db6e3b5cf9befba9 (diff) | |
| download | rust-bd2d17e4a1f75bc7e451fc1054d98ff13c456850.tar.gz rust-bd2d17e4a1f75bc7e451fc1054d98ff13c456850.zip | |
libsyntax: Stop parsing bare functions in preparation for switching them over
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/uint-template.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcore/num/uint-template.rs b/src/libcore/num/uint-template.rs index 9a141bfd341..9abbfb03d7a 100644 --- a/src/libcore/num/uint-template.rs +++ b/src/libcore/num/uint-template.rs @@ -67,7 +67,10 @@ pub pure fn is_nonnegative(x: T) -> bool { x >= 0 as T } * Iterate over the range [`start`,`start`+`step`..`stop`) * */ -pub pure fn range_step(start: T, stop: T, step: T_SIGNED, it: &fn(T) -> bool) { +pub pure fn range_step(start: T, + stop: T, + step: T_SIGNED, + it: &fn(T) -> bool) { let mut i = start; if step == 0 { fail!(~"range_step called with step == 0"); |
