From 71950202367525bf30c33800a7e2ac61b6d44469 Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Tue, 10 Dec 2024 20:30:44 -0800 Subject: [PATCH] update doc comment --- pkg/decoders/base64.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/decoders/base64.go b/pkg/decoders/base64.go index b20288a30..8b015acb5 100644 --- a/pkg/decoders/base64.go +++ b/pkg/decoders/base64.go @@ -54,6 +54,8 @@ func makeASCIISet(chars string) (as asciiSet, ok bool) { // contains reports whether c is inside the set by using bitwise operations // to check if the corresponding bit is set in the lookup table. +// This approach was taken from the bytes package. +// https://cs.opensource.google/go/go/+/refs/tags/go1.23.4:src/bytes/bytes.go;l=899 func (as *asciiSet) contains(c byte) bool { return (as[c/32] & (1 << (c % 32))) != 0 }