fixed code to placate new restrictions on form of function/method invocations.
This commit is contained in:
parent
b03a0b27aa
commit
876f6deb4a
3 changed files with 5 additions and 5 deletions
|
|
@ -206,7 +206,7 @@ fn all_whitespace(s: &str, col: CharPos) -> Option<uint> {
|
|||
let mut col = col.to_uint();
|
||||
let mut cursor: uint = 0;
|
||||
while col > 0 && cursor < len {
|
||||
let r: str::CharRange = str::char_range_at(s, cursor);
|
||||
let r: str::CharRange = s.char_range_at(cursor);
|
||||
if !r.ch.is_whitespace() {
|
||||
return None;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,8 +109,8 @@ fn main() {
|
|||
'\u2004', '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200A',
|
||||
'\u2028', '\u2029', '\u202F', '\u205F', '\u3000'];
|
||||
// <= bugs in pretty-printer?
|
||||
for vec::each(chars) |c| {
|
||||
for chars.each |c| {
|
||||
let ws = c.is_whitespace();
|
||||
io::println(fmt!("%? %?" , c , ws));
|
||||
println(fmt!("%? %?" , c , ws));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,8 +102,8 @@ fn main() {
|
|||
'\xA0', '\u1680', '\u180E', '\u2000', '\u2001', '\u2002', '\u2003',
|
||||
'\u2004', '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200A',
|
||||
'\u2028', '\u2029', '\u202F', '\u205F', '\u3000'];
|
||||
for vec::each(chars) |c| {
|
||||
for chars.each |c| {
|
||||
let ws = c.is_whitespace();
|
||||
io::println(fmt!("%? %?", c , ws)); // <= bugs in pretty-printer?
|
||||
println(fmt!("%? %?", c , ws)); // <= bugs in pretty-printer?
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue