From bd863a711628e66b8ed5816fce62a0adf5003ecc Mon Sep 17 00:00:00 2001 From: Hiroya FUJINAMI Date: Mon, 26 Aug 2019 15:41:03 +0900 Subject: [PATCH] all: remove duplicate articles in comment Removed 'an an' and 'the the', 'the a' in comment. Change-Id: I01a1f12e44bc8a2db5246e92fd83da2d7c1749e7 Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/44470 Reviewed-by: kokoro Reviewed-by: Emmanuel Odeke --- iam/admin/apiv1/iam_client.go | 2 +- pubsub/topic.go | 2 +- storage/writer.go | 2 +- trace/sampling.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iam/admin/apiv1/iam_client.go b/iam/admin/apiv1/iam_client.go index 542c6c11a1b3..57684a3a8422 100644 --- a/iam/admin/apiv1/iam_client.go +++ b/iam/admin/apiv1/iam_client.go @@ -447,7 +447,7 @@ func (c *IamClient) QueryGrantableRoles(ctx context.Context, req *adminpb.QueryG // SignJwt signs a JWT using a service account's system-managed private key. // // If no expiry time (exp) is provided in the SignJwtRequest, IAM sets an -// an expiry time of one hour by default. If you request an expiry time of +// expiry time of one hour by default. If you request an expiry time of // more than one hour, the request will fail. func (c *IamClient) SignJwt(ctx context.Context, req *adminpb.SignJwtRequest, opts ...gax.CallOption) (*adminpb.SignJwtResponse, error) { md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) diff --git a/pubsub/topic.go b/pubsub/topic.go index ea7c2779af64..2b31431ed93d 100644 --- a/pubsub/topic.go +++ b/pubsub/topic.go @@ -184,7 +184,7 @@ type TopicConfig struct { // The topic's message storage policy. MessageStoragePolicy MessageStoragePolicy - // The name of the the Cloud KMS key to be used to protect access to messages + // The name of the Cloud KMS key to be used to protect access to messages // published to this topic, in the format // "projects/P/locations/L/keyRings/R/cryptoKeys/K". KMSKeyName string diff --git a/storage/writer.go b/storage/writer.go index 0f52414b84c7..95b91b8f559c 100644 --- a/storage/writer.go +++ b/storage/writer.go @@ -231,7 +231,7 @@ func (w *Writer) Close() error { } // monitorCancel is intended to be used as a background goroutine. It monitors the -// the context, and when it observes that the context has been canceled, it manually +// context, and when it observes that the context has been canceled, it manually // closes things that do not take a context. func (w *Writer) monitorCancel() { select { diff --git a/trace/sampling.go b/trace/sampling.go index 802144b2b7c9..6f16b9973261 100644 --- a/trace/sampling.go +++ b/trace/sampling.go @@ -69,7 +69,7 @@ func (s *sampler) Sample(p Parameters) Decision { return d } -// sample contains the a deterministic, time-independent logic of Sample. +// sample contains a deterministic, time-independent logic of Sample. func (s *sampler) sample(p Parameters, now time.Time, x float64) (d Decision) { d.Sample = x < s.fraction d.Trace = p.HasTraceHeader || d.Sample