From 063df5c7b3a93aa1cc2d731f3c1d398a3e0d2c2c Mon Sep 17 00:00:00 2001 From: supereagle Date: Sat, 17 Jun 2017 17:17:22 +0800 Subject: [PATCH] fix typos: remove duplicated word in comments Kubernetes-commit: 87c29a08e1f51b2989ff15fc3e5857bc287e401f --- pkg/server/config.go | 2 +- pkg/server/handler.go | 2 +- pkg/storage/value/encrypt/secretbox/secretbox.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/server/config.go b/pkg/server/config.go index 9ededc431..ebf621636 100644 --- a/pkg/server/config.go +++ b/pkg/server/config.go @@ -67,7 +67,7 @@ import ( ) const ( - // DefaultLegacyAPIPrefix is where the the legacy APIs will be located. + // DefaultLegacyAPIPrefix is where the legacy APIs will be located. DefaultLegacyAPIPrefix = "/api" // APIGroupPrefix is where non-legacy API group will be located. diff --git a/pkg/server/handler.go b/pkg/server/handler.go index 48d1408a4..5368e2e0f 100644 --- a/pkg/server/handler.go +++ b/pkg/server/handler.go @@ -62,7 +62,7 @@ type APIServerHandler struct { // which we don't fit into and it still muddies up swagger. Trying to switch the webservices into a route doesn't work because the // containing webservice faces all the same problems listed above. // This leads to the crazy thing done here. Our mux does what we need, so we'll place it in front of gorestful. It will introspect to - // decide if the the route is likely to be handled by goresful and route there if needed. Otherwise, it goes to PostGoRestful mux in + // decide if the route is likely to be handled by goresful and route there if needed. Otherwise, it goes to PostGoRestful mux in // order to handle "normal" paths and delegation. Hopefully no API consumers will ever have to deal with this level of detail. I think // we should consider completely removing gorestful. // Other servers should only use this opaquely to delegate to an API server. diff --git a/pkg/storage/value/encrypt/secretbox/secretbox.go b/pkg/storage/value/encrypt/secretbox/secretbox.go index f53aa2c37..0eaa62824 100644 --- a/pkg/storage/value/encrypt/secretbox/secretbox.go +++ b/pkg/storage/value/encrypt/secretbox/secretbox.go @@ -27,7 +27,7 @@ import ( ) // secretbox implements at rest encryption of the provided values given a 32 byte secret key. -// Uses a standard 24 byte nonce (placed at the the beginning of the cipher text) generated +// Uses a standard 24 byte nonce (placed at the beginning of the cipher text) generated // from crypto/rand. Does not perform authentication of the data at rest. type secretboxTransformer struct { key [32]byte