From: Ian Lance Taylor Date: Fri, 13 Oct 2023 19:38:57 +0000 (-0700) Subject: bufio: link "too large to fit" to Scanner.Buffer X-Git-Tag: go1.22rc1~595 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dd491cfa544ff99e2530cd42750eaf318ec1e060;p=gostls13.git bufio: link "too large to fit" to Scanner.Buffer Change-Id: Id0a4f5716da98008eec10eee05b74fc2a155ba3c Reviewed-on: https://go-review.googlesource.com/c/go/+/535216 Reviewed-by: Mauri de Souza Meneguzzo Auto-Submit: Ian Lance Taylor Reviewed-by: Rob Pike Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov --- diff --git a/src/bufio/scan.go b/src/bufio/scan.go index 558e168b2d..15ea7ffcb8 100644 --- a/src/bufio/scan.go +++ b/src/bufio/scan.go @@ -22,7 +22,7 @@ import ( // client may instead provide a custom split function. // // Scanning stops unrecoverably at EOF, the first I/O error, or a token too -// large to fit in the buffer. When a scan stops, the reader may have +// large to fit in the [Scanner.Buffer]. When a scan stops, the reader may have // advanced arbitrarily far past the last token. Programs that need more // control over error handling or large tokens, or must run sequential scans // on a reader, should use [bufio.Reader] instead.