From 202b7e7e76128f524142ac7d328fe8458a096dbf Mon Sep 17 00:00:00 2001 From: RenKanai Date: Thu, 9 Jun 2022 01:42:26 +0900 Subject: [PATCH] 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 Reviewed-by: Heschi Kreinick Run-TryBot: hopehook Reviewed-by: Rob Pike Reviewed-by: Benny Siegert Reviewed-by: hopehook Reviewed-by: Subham --- src/encoding/asn1/asn1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoding/asn1/asn1.go b/src/encoding/asn1/asn1.go index c90bba47dcf..4408352cff6 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