Skip to content

Commit

Permalink
remove obsolete and incorrect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Apr 22, 2019
1 parent 6d59933 commit c29a98e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libsyntax/parse/lexer/mod.rs
Expand Up @@ -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)
Expand Down

0 comments on commit c29a98e

Please sign in to comment.