aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorRenKanai <rk2904powr@gmail.com>2022-06-09 01:42:26 +0900
committerRob Pike <r@golang.org>2022-09-02 09:14:48 +0000
commit202b7e7e76128f524142ac7d328fe8458a096dbf (patch)
treeb0df10b7e18b38870bf6d86287c4db9c4de66e6d /src/encoding
parentec2ea40b315e8b1a3d1dc8f7987584c4e2a00ef4 (diff)
downloadgo-202b7e7e76128f524142ac7d328fe8458a096dbf.tar.xz
encoding/asn1: fix doc for BitString.At's return value
Fixes #53287 Change-Id: If983ae34850d9b1b29764156a38628fa53897573 Reviewed-on: https://go-review.googlesource.com/c/go/+/411134 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> Run-TryBot: hopehook <hopehook@golangcn.org> Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Benny Siegert <bsiegert@gmail.com> Reviewed-by: hopehook <hopehook@golangcn.org> Reviewed-by: Subham <sarkar.subhams2@gmail.com>
Diffstat (limited to 'src/encoding')
-rw-r--r--src/encoding/asn1/asn1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/asn1/asn1.go b/src/encoding/asn1/asn1.go
index c90bba47dc..4408352cff 100644
--- a/src/encoding/asn1/asn1.go
+++ b/src/encoding/asn1/asn1.go
@@ -162,7 +162,7 @@ type BitString struct {
}
// At returns the bit at the given index. If the index is out of range it
-// returns false.
+// returns 0.
func (b BitString) At(i int) int {
if i < 0 || i >= b.BitLength {
return 0