]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/asn1: fix doc for BitString.At's return value
authorRenKanai <rk2904powr@gmail.com>
Wed, 8 Jun 2022 16:42:26 +0000 (01:42 +0900)
committerRob Pike <r@golang.org>
Fri, 2 Sep 2022 09:14:48 +0000 (09:14 +0000)
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>
src/encoding/asn1/asn1.go

index c90bba47dcf8e8a94c66b98d16c2557fe8d89f0d..4408352cff68ffe759857de4a8bd4ec16e69ff1b 100644 (file)
@@ -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