From dd491cfa544ff99e2530cd42750eaf318ec1e060 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 13 Oct 2023 12:38:57 -0700 Subject: [PATCH] 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 --- src/bufio/scan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.50.0