From 72846deba9c5687829afad1079f01ac7c21650c3 Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Sat, 14 Oct 2023 03:24:41 -0400 Subject: [PATCH] all: fix misuses of "a" vs "an" Fixes the misuse of "a" vs "an", according to English grammatical expectations and using https://www.a-or-an.com/ Change-Id: I53ac724070e3ff3d33c304483fe72c023c7cda47 Reviewed-on: https://go-review.googlesource.com/c/go/+/480536 Run-TryBot: shuang cui Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Michael Knyszek --- cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cache.go b/cache.go index 1aa8c5e..651b102 100644 --- a/cache.go +++ b/cache.go @@ -22,7 +22,7 @@ type cacheEntry struct { // multiple Conns. Returned references should not be mutated by callers. Certificates // are still safe to use after they are removed from the cache. // -// Certificates are returned wrapped in a activeCert struct that should be held by +// Certificates are returned wrapped in an activeCert struct that should be held by // the caller. When references to the activeCert are freed, the number of references // to the certificate in the cache is decremented. Once the number of references // reaches zero, the entry is evicted from the cache. @@ -49,7 +49,7 @@ type activeCert struct { } // active increments the number of references to the entry, wraps the -// certificate in the entry in a activeCert, and sets the finalizer. +// certificate in the entry in an activeCert, and sets the finalizer. // // Note that there is a race between active and the finalizer set on the // returned activeCert, triggered if active is called after the ref count is