aboutsummaryrefslogtreecommitdiff
path: root/src/bufio
diff options
context:
space:
mode:
authorlihaowei <haoweili35@gmail.com>2020-08-14 10:35:46 +0000
committerDave Cheney <dave@cheney.net>2020-08-18 03:28:52 +0000
commit7fbd8c75c6c57e713069a3a405e5cde26cfae090 (patch)
treed339172c6fa46de0c4c73735226cf236d6850b5c /src/bufio
parentdb4cda2ec0955854c8ff556ac19ec5e67d48d090 (diff)
downloadgo-7fbd8c75c6c57e713069a3a405e5cde26cfae090.tar.gz
go-7fbd8c75c6c57e713069a3a405e5cde26cfae090.zip
all: fix spelling mistakes
Change-Id: I7d512281d8442d306594b57b5deaecd132b5ea9e GitHub-Last-Rev: 251e1d6857516b21fd71f654133f81f23ffec654 GitHub-Pull-Request: golang/go#40793 Reviewed-on: https://go-review.googlesource.com/c/go/+/248441 Reviewed-by: Dave Cheney <dave@cheney.net>
Diffstat (limited to 'src/bufio')
-rw-r--r--src/bufio/bufio.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bufio/bufio.go b/src/bufio/bufio.go
index 7cbd5424ea..6baf9b9e40 100644
--- a/src/bufio/bufio.go
+++ b/src/bufio/bufio.go
@@ -425,7 +425,7 @@ func (b *Reader) ReadLine() (line []byte, isPrefix bool, err error) {
// of bytes in the combined first two elements, error).
// The complete result is equal to
// `bytes.Join(append(fullBuffers, finalFragment), nil)`, which has a
-// length of `totalLen`. The result is strucured in this way to allow callers
+// length of `totalLen`. The result is structured in this way to allow callers
// to minimize allocations and copies.
func (b *Reader) collectFragments(delim byte) (fullBuffers [][]byte, finalFragment []byte, totalLen int, err error) {
var frag []byte