diff options
author | Mickey Reiss <mickeyreiss@gmail.com> | 2019-05-23 05:15:49 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-05-23 13:55:55 +0000 |
commit | 4fbb4e74aa3b9e83d812e494766cff41e57dd5a8 (patch) | |
tree | 2a12e20f0700071642516ff7185ee4c719e94145 | |
parent | 65ef999d52ebce2534e8006d7a6d5bb6871f3c24 (diff) | |
download | go-git-4fbb4e74aa3b9e83d812e494766cff41e57dd5a8.tar.gz |
bufio: Fix typo in scan.go documentation
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: 635e35c0191c11f2b6966b5e58cf91a1064099da
GitHub-Pull-Request: golang/go#32193
Reviewed-on: https://go-review.googlesource.com/c/go/+/178637
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r-- | src/bufio/scan.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bufio/scan.go b/src/bufio/scan.go index cefd261464..4e787c4b0a 100644 --- a/src/bufio/scan.go +++ b/src/bufio/scan.go @@ -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 |