diff options
| author | Paul Collier <paul@paulcollier.ca> | 2015-01-17 23:33:05 +0000 |
|---|---|---|
| committer | Paul Collier <paul@paulcollier.ca> | 2015-01-17 23:45:29 +0000 |
| commit | a32249d4477f449646162bbad607c39d0ad7f3ca (patch) | |
| tree | fd561fde4f3f7bc60796ecd3683c1ad1c173f403 /src/libsyntax/util/parser_testing.rs | |
| parent | 89c4e3792ddc5b45706ea0e919806a248f7a87c3 (diff) | |
| download | rust-a32249d4477f449646162bbad607c39d0ad7f3ca.tar.gz rust-a32249d4477f449646162bbad607c39d0ad7f3ca.zip | |
libsyntax: uint types to usize
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
| -rw-r--r-- | src/libsyntax/util/parser_testing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index 83bbff8473d..5466b7337e7 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -130,10 +130,10 @@ pub fn matches_codepattern(a : &str, b : &str) -> bool { } } -/// Given a string and an index, return the first uint >= idx +/// Given a string and an index, return the first usize >= idx /// that is a non-ws-char or is outside of the legal range of /// the string. -fn scan_for_non_ws_or_end(a : &str, idx: uint) -> uint { +fn scan_for_non_ws_or_end(a : &str, idx: usize) -> usize { let mut i = idx; let len = a.len(); while (i < len) && (is_whitespace(a.char_at(i))) { |
