Skip to content

Commit

Permalink
encoding/asn1: fix doc for BitString.At's return value
Browse files Browse the repository at this point in the history
Fixes #53287

Change-Id: If983ae34850d9b1b29764156a38628fa53897573
Reviewed-on: https://go-review.googlesource.com/c/go/+/411134
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Heschi Kreinick <[email protected]>
Run-TryBot: hopehook <[email protected]>
Reviewed-by: Rob Pike <[email protected]>
Reviewed-by: Benny Siegert <[email protected]>
Reviewed-by: hopehook <[email protected]>
Reviewed-by: Subham <[email protected]>
  • Loading branch information
rennnosuke authored and robpike committed Sep 2, 2022
1 parent ec2ea40 commit 202b7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoding/asn1/asn1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 202b7e7

Please sign in to comment.