Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix committed Dec 17, 2023
1 parent 0bbb028 commit 029d70a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/NZSL/Lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,10 @@ namespace nzsl

case '"':
{
// string litteral
// string literal
currentPos++;

std::string litteral;
std::string literal;

char current;
while ((current = Peek(0)) != '"')
Expand Down Expand Up @@ -497,12 +497,12 @@ namespace nzsl
break;
}

litteral.push_back(character);
literal.push_back(character);
currentPos++;
}

tokenType = TokenType::StringValue;
token.data = std::move(litteral);
token.data = std::move(literal);
break;
}

Expand Down

0 comments on commit 029d70a

Please sign in to comment.