Skip to content

Commit

Permalink
bufio: Fix typo in scan.go documentation
Browse files Browse the repository at this point in the history
Apologies for the the nitpicky PR. I believe there is a minor typo in the documentation of `MaxScanTokenSize`, which confused me for a moment when I went to search for the referenced method, `Scan.Buffer`. Thanks!

Change-Id: I5d21e77276285206497fe75291001032c255cace
GitHub-Last-Rev: 635e35c
GitHub-Pull-Request: #32193
Reviewed-on: https://go-review.googlesource.com/c/go/+/178637
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
mickeyreiss authored and bradfitz committed May 23, 2019
1 parent 65ef999 commit 4fbb4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bufio/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var (

const (
// MaxScanTokenSize is the maximum size used to buffer a token
// unless the user provides an explicit buffer with Scan.Buffer.
// unless the user provides an explicit buffer with Scanner.Buffer.
// The actual maximum token size may be smaller as the buffer
// may need to include, for instance, a newline.
MaxScanTokenSize = 64 * 1024
Expand Down

0 comments on commit 4fbb4e7

Please sign in to comment.