aboutsummaryrefslogtreecommitdiff
path: root/header.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-09 10:29:28 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-09 09:29:28 +0100
commitc0c5f9cd387c3b450ba24cbe364b44a65d9eb269 (patch)
tree3d321c0edf20a6789ef34cb494f59936ecc53caa /header.go
parentoptimized b2s function (#1483) (diff)
downloadfasthttp-c0c5f9cd387c3b450ba24cbe364b44a65d9eb269.tar.gz
fasthttp-c0c5f9cd387c3b450ba24cbe364b44a65d9eb269.tar.bz2
fasthttp-c0c5f9cd387c3b450ba24cbe364b44a65d9eb269.zip
doc,test: correct typos (#1484)
Diffstat (limited to 'header.go')
-rw-r--r--header.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/header.go b/header.go
index 7c12308..914d284 100644
--- a/header.go
+++ b/header.go
@@ -3083,7 +3083,7 @@ func (s *headerScanner) next() bool {
n++
for len(s.b) > n && s.b[n] == ' ' {
n++
- // the newline index is a relative index, and lines below trimed `s.b` by `n`,
+ // the newline index is a relative index, and lines below trimmed `s.b` by `n`,
// so the relative newline index also shifted forward. it's safe to decrease
// to a minus value, it means it's invalid, and will find the newline again.
s.nextNewLine--