Skip to content

Commit 202b7e7

Browse files
rennnosukerobpike
authored andcommitted
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>
1 parent ec2ea40 commit 202b7e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoding/asn1/asn1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ type BitString struct {
162162
}
163163

164164
// At returns the bit at the given index. If the index is out of range it
165-
// returns false.
165+
// returns 0.
166166
func (b BitString) At(i int) int {
167167
if i < 0 || i >= b.BitLength {
168168
return 0

0 commit comments

Comments
 (0)