mirror of https://github.com/goccy/go-json.git
Update README.md
This commit is contained in:
parent
5f1fcddcf5
commit
3244416dae
|
@ -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':
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue