golang/src/encoding/asn1
apocelipes 33fd95b820 encoding/asn1: simplify appendFourDigits
The new code does not need a for-loop and is easier to read.

Change-Id: Ic182d63c4779c2179b721fcfaec362681284cc16
GitHub-Last-Rev: b3ee265df7eb4d51c945bf5453eb1b09f91912d9
GitHub-Pull-Request: golang/go#63879
Reviewed-on: https://go-review.googlesource.com/c/go/+/538721
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
2024-03-28 18:16:09 +00:00
..
asn1.go encoding: modernize Go documentation 2023-09-08 19:04:28 +00:00
asn1_test.go encoding/asn1: improve memory efficiency of ObjectIdentifier.String 2023-03-29 18:24:36 +00:00
common.go all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
marshal.go encoding/asn1: simplify appendFourDigits 2024-03-28 18:16:09 +00:00
marshal_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00