about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2019-04-23 00:03:57 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2019-04-23 00:03:57 +0300
commitc29a98e40d825c7f0f6a1d9013747266e835d0be (patch)
tree1a8a14d97ea1a349e54d6f1c8babe70e606cd63f /src/libsyntax/parse
parent6d599337fa7047307ba72786bbabe6b9c9e4daac (diff)
downloadrust-c29a98e40d825c7f0f6a1d9013747266e835d0be.tar.gz
rust-c29a98e40d825c7f0f6a1d9013747266e835d0be.zip
remove obsolete and incorrect comment
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs
index aad2acfd6d4..61322985b9a 100644
--- a/src/libsyntax/parse/lexer/mod.rs
+++ b/src/libsyntax/parse/lexer/mod.rs
@@ -446,9 +446,7 @@ impl<'a> StringReader<'a> {
         self.with_str_from_to(start, self.pos, f)
     }
 
-    /// Creates a Name from a given offset to the current offset, each
-    /// adjusted 1 towards each other (assumes that on either side there is a
-    /// single-byte delimiter).
+    /// Creates a Name from a given offset to the current offset.
     fn name_from(&self, start: BytePos) -> ast::Name {
         debug!("taking an ident from {:?} to {:?}", start, self.pos);
         self.with_str_from(start, Symbol::intern)