about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2013-06-14 09:36:03 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2013-06-14 09:36:03 +0200
commit876f6deb4af73d3a6a9845c8ca0a9edff0e25989 (patch)
tree7c412760a40e03c388d9f4a72d90a4b03a6ee566 /src/libsyntax
parentb03a0b27aa6fd0d2b8be4434c73ad45311e292fc (diff)
downloadrust-876f6deb4af73d3a6a9845c8ca0a9edff0e25989.tar.gz
rust-876f6deb4af73d3a6a9845c8ca0a9edff0e25989.zip
fixed code to placate new restrictions on form of function/method invocations.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/comments.rs2
1 files changed, 1 insertions, 1 deletions
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<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;
         }