fix comments

This commit is contained in:
damirka 2021-05-20 00:33:39 +03:00
parent f96c4ad37e
commit f404c426ed
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ impl Node for ValueExpression {
| Char(_, span)
| Field(_, span)
| Implicit(_, span)
| Integer(_, _, span) // => span,
| Integer(_, _, span)
| String(_, span) => span,
Group(group) => match &**group {
GroupValue::Single(_, span) | GroupValue::Tuple(GroupTuple { span, .. }) => span,
@ -82,7 +82,7 @@ impl Node for ValueExpression {
| Char(_, span)
| Field(_, span)
| Implicit(_, span)
| Integer(_, _, span) // => *span = new_span,
| Integer(_, _, span)
| String(_, span) => *span = new_span,
Group(group) => match &mut **group {
GroupValue::Single(_, span) | GroupValue::Tuple(GroupTuple { span, .. }) => *span = new_span,

View File

@ -62,7 +62,7 @@ fn eat_identifier(input_tendril: &StrTendril) -> Option<StrTendril> {
impl Token {
///
/// Eats symbol. Used for string literals and char literals
/// Eats String. Returns Token::StringLiteral with processed contents of the string.
///
fn eat_string(input_tendril: &StrTendril) -> (usize, Option<Token>) {
if input_tendril.is_empty() {