From 876f6deb4af73d3a6a9845c8ca0a9edff0e25989 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Fri, 14 Jun 2013 09:36:03 +0200 Subject: fixed code to placate new restrictions on form of function/method invocations. --- src/libsyntax/parse/comments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 29fac8f951d..572b657d6a1 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -206,7 +206,7 @@ fn all_whitespace(s: &str, col: CharPos) -> Option { 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; } -- cgit 1.4.1-3-g733a5