aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/scanner.c
diff options
context:
space:
mode:
Diffstat (limited to 'clox/src/scanner.c')
-rw-r--r--clox/src/scanner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clox/src/scanner.c b/clox/src/scanner.c
index 5e0f4bf..dba1380 100644
--- a/clox/src/scanner.c
+++ b/clox/src/scanner.c
@@ -97,8 +97,8 @@ static void skipWhitespace() {
static TokenType checkKeyword(int start, int length, const char *rest,
TokenType type) {
- if (scanner.current - scanner.start == start + length &&
- memcmp(scanner.start + start, rest, length) == 0) {
+ if (scanner.current - scanner.start == start + length
+ && memcmp(scanner.start + start, rest, length) == 0) {
return type;
}