summaryrefslogtreecommitdiff
path: root/AUTHORS
diff options
context:
space:
mode:
authorMostyn Bramley-Moore <mostyn@antipode.se>2018-08-08 21:34:43 +0000
committerRobert Griesemer <gri@golang.org>2018-08-08 21:37:36 +0000
commitf2131f6e0c6ca016143fc402d9d01f6a730f97cd (patch)
treea2c4fa00d523a2cb45c9bf7196b808d655cd7330 /AUTHORS
parent6b937ace680ac4377c9d952687104f4d23f1ce16 (diff)
downloadgo-git-f2131f6e0c6ca016143fc402d9d01f6a730f97cd.tar.gz
doc.Example should not worry about unresolved blank identifiers
https://golang.org/pkg/bufio/#example_Scanner_custom is not directly runnable in the playground via godoc, but if I copy+paste the code into https://play.golang.org/ then it runs just fine. This seems to be due to the blank identifier being considered unresolved in the following line in the example: _, err = strconv.ParseInt(string(token), 10, 32) But that's the whole point of blank identifiers- they're not supposed to be resolved. So let's skip adding the blank identifier to doc.playExample's unresolved map. Fixes #26447 Change-Id: I52bc7d99be1d14a61dc012d10c18349d52ba4c51 GitHub-Last-Rev: 9172e9dc1378b0f37f96fc2e1ade4dda9d848398 GitHub-Pull-Request: golang/go#26448 Reviewed-on: https://go-review.googlesource.com/124775 Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions