Skip to content

Commit

Permalink
Merge pull request #13 from Oppodelldog/Oppodelldog-patch-1
Browse files Browse the repository at this point in the history
fixed sample for "SPACE"
  • Loading branch information
timtadh authored Dec 24, 2017
2 parents 5ea8ac2 + ddd1a56 commit 0804877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Then adding patterns for our 3 tokens is concise:

```go
lexer.Add([]byte(`[Ww][Ii][Ll][Dd]`), token("WILD"))
lexer.Add([]byte(` \t\n\r`), token("SPACE"))
lexer.Add([]byte(` `), token("SPACE"))
lexer.Add([]byte(`!`), token("BANG"))
```

Expand Down

0 comments on commit 0804877

Please sign in to comment.