From abfce0f8c3309f85157c0321e950647a6210e86e Mon Sep 17 00:00:00 2001 From: lihaowei Date: Sat, 8 Aug 2020 13:27:28 +0800 Subject: [PATCH] Format Codes Chore: Correct words and format codes Revert three changes Revert 1 change Revert again Revert 2 changes Kubernetes-commit: af7cf4abc6bfeb0d2cfaca76097cf7a0603c4495 --- discovery/discovery_client.go | 2 +- rest/config.go | 2 +- rest/request.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/discovery/discovery_client.go b/discovery/discovery_client.go index 6c8e87e2..57404e0b 100644 --- a/discovery/discovery_client.go +++ b/discovery/discovery_client.go @@ -501,7 +501,7 @@ func NewDiscoveryClientForConfigOrDie(c *restclient.Config) *DiscoveryClient { } -// NewDiscoveryClient returns a new DiscoveryClient for the given RESTClient. +// NewDiscoveryClient returns a new DiscoveryClient for the given RESTClient. func NewDiscoveryClient(c restclient.Interface) *DiscoveryClient { return &DiscoveryClient{restClient: c, LegacyPrefix: "/api"} } diff --git a/rest/config.go b/rest/config.go index 6e50eef5..48cf51f6 100644 --- a/rest/config.go +++ b/rest/config.go @@ -203,7 +203,7 @@ type TLSClientConfig struct { // Server should be accessed without verifying the TLS certificate. For testing only. Insecure bool // ServerName is passed to the server for SNI and is used in the client to check server - // ceritificates against. If ServerName is empty, the hostname used to contact the + // certificates against. If ServerName is empty, the hostname used to contact the // server is used. ServerName string diff --git a/rest/request.go b/rest/request.go index 0ed7def7..2f747a28 100644 --- a/rest/request.go +++ b/rest/request.go @@ -638,7 +638,7 @@ func (b *throttledLogger) attemptToLog() (klog.Level, bool) { return -1, false } -// Infof will write a log message at each logLevel specified by the reciever's throttleSettings +// Infof will write a log message at each logLevel specified by the receiver's throttleSettings // as long as it hasn't written a log message more recently than minLogInterval. func (b *throttledLogger) Infof(message string, args ...interface{}) { if logLevel, ok := b.attemptToLog(); ok {