libsyntax: uint types to usize

This commit is contained in:
Paul Collier
2015-01-17 23:33:05 +00:00
parent 89c4e3792d
commit a32249d447
29 changed files with 165 additions and 165 deletions

View File

@@ -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))) {