]> Cypherpunks repositories - gostls13.git/commitdiff
bufio: Fix typo in scan.go documentation
authorMickey Reiss <mickeyreiss@gmail.com>
Thu, 23 May 2019 05:15:49 +0000 (05:15 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 23 May 2019 13:55:55 +0000 (13:55 +0000)
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>
src/bufio/scan.go

index cefd26146479ebf7b3c1074640c955133d9db3a6..4e787c4b0a427669527376127ea4140f1386bce5 100644 (file)
@@ -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