]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/get: make the implementation of charsetReader match its comment
authorBryan C. Mills <bcmills@google.com>
Mon, 5 Aug 2019 18:32:46 +0000 (14:32 -0400)
committerBryan C. Mills <bcmills@google.com>
Wed, 11 Sep 2019 16:24:33 +0000 (16:24 +0000)
commit8fb9fa36f5b7cf161d0694fdb418af7c83b946d5
tree2d238b673568aaf5cacc3de7458d35d6f5825190
parent51be44bfafb43e034fae09f259b53b48c395f89b
cmd/go/internal/get: make the implementation of charsetReader match its comment

The doc comment for charsetReader claims that it supports UTF-8,
but in practice it does not: instead, it is never invoked for UTF-8.

We could update the comment to clarify that fact, but it seems simpler
to change the implementation to match the comment.

Change-Id: I39b11395ccef3feff96480b9294e8f2a232728dd
Reviewed-on: https://go-review.googlesource.com/c/go/+/189777
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/get/discovery.go