Skip to content

Commit

Permalink
Merge pull request ascoders#171 from vivaxy/patch-2
Browse files Browse the repository at this point in the history
Update 064.精读《手写 SQL 编译器 - 词法分析》.md
  • Loading branch information
ascoders authored Jun 25, 2019
2 parents b6487f8 + 7a8e1b2 commit 2a92487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 064.精读《手写 SQL 编译器 - 词法分析》.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function getTokenBlockComment(restStr: string) {
```typescript
while (sqlStr) {
token =
getTokenWhitespace(sqlStr, token) | getTokenBlockComment(sqlStr, token);
getTokenWhitespace(sqlStr, token) || getTokenBlockComment(sqlStr, token);

sqlStr = sqlStr.substring(token.value.length);

Expand Down

0 comments on commit 2a92487

Please sign in to comment.