Update README.md

This commit is contained in:
Masaaki Goshima 2021-02-09 20:54:34 +09:00 committed by GitHub
parent 5f1fcddcf5
commit 3244416dae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ At that time, if you check whether the buffer has reached the end, it will be ve
```go ```go
buflen := len(buf) buflen := len(buf)
for ; i < buflen; cursor++ { // compare i and buflen at all times, it is so slow. for ; cursor < buflen; cursor++ { // compare cursor and buflen at all times, it is so slow.
switch buf[cursor] { switch buf[cursor] {
case ' ', '\n', '\r', '\t': case ' ', '\n', '\r', '\t':
} }