Skip to content

Commit 33a7ea7

Browse files
authored
Merge pull request kubernetes#93809 from Howie66/chore-Correct-words
Chore correct words
2 parents 39cf26f + af7cf4a commit 33a7ea7

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

staging/src/k8s.io/apimachinery/pkg/util/cache/expiring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (c *Expiring) gc(now time.Time) {
145145
// expired.
146146
//
147147
// heap[0] is a peek at the next element in the heap, which is not obvious
148-
// from looking at the (*expiringHeap).Pop() implmentation below.
148+
// from looking at the (*expiringHeap).Pop() implementation below.
149149
// heap.Pop() swaps the first entry with the last entry of the heap, then
150150
// calls (*expiringHeap).Pop() which returns the last element.
151151
if len(c.heap) == 0 || now.Before(c.heap[0].expiry) {

staging/src/k8s.io/apimachinery/pkg/util/errors/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func matchesError(err error, fns ...Matcher) bool {
163163

164164
// filterErrors returns any errors (or nested errors, if the list contains
165165
// nested Errors) for which all fns return false. If no errors
166-
// remain a nil list is returned. The resulting silec will have all
166+
// remain a nil list is returned. The resulting slice will have all
167167
// nested slices flattened as a side effect.
168168
func filterErrors(list []error, fns ...Matcher) []error {
169169
result := []error{}

staging/src/k8s.io/apimachinery/pkg/util/net/port_range.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (*PortRange) Type() string {
130130
}
131131

132132
// ParsePortRange parses a string of the form "min-max", inclusive at both
133-
// ends, and initializs a new PortRange from it.
133+
// ends, and initializes a new PortRange from it.
134134
func ParsePortRange(value string) (*PortRange, error) {
135135
pr := &PortRange{}
136136
err := pr.Set(value)

staging/src/k8s.io/apimachinery/pkg/util/net/util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestIPNetEqual(t *testing.T) {
3535
ipnet2 *net.IPNet
3636
expect bool
3737
}{
38-
//null case
38+
// null case
3939
{
4040
getIPNet("10.0.0.1/24"),
4141
getIPNet(""),

staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func logPanic(r interface{}) {
7979
}
8080
}
8181

82-
// ErrorHandlers is a list of functions which will be invoked when an unreturnable
82+
// ErrorHandlers is a list of functions which will be invoked when a nonreturnable
8383
// error occurs.
8484
// TODO(lavalamp): for testability, this and the below HandleError function
8585
// should be packaged up into a testable and reusable object.
@@ -165,7 +165,7 @@ func RecoverFromPanic(err *error) {
165165
}
166166
}
167167

168-
// Must panics on non-nil errors. Useful to handling programmer level errors.
168+
// Must panics on non-nil errors. Useful to handling programmer level errors.
169169
func Must(err error) {
170170
if err != nil {
171171
panic(err)

staging/src/k8s.io/apimachinery/pkg/util/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"strings"
2525
)
2626

27-
// Version is an opqaue representation of a version number
27+
// Version is an opaque representation of a version number
2828
type Version struct {
2929
components []uint
3030
semver bool

staging/src/k8s.io/apimachinery/pkg/watch/watch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func (f *RaceFreeFakeWatcher) Action(action EventType, obj runtime.Object) {
276276
}
277277
}
278278

279-
// ProxyWatcher lets you wrap your channel in watch Interface. Threadsafe.
279+
// ProxyWatcher lets you wrap your channel in watch Interface. threadsafe.
280280
type ProxyWatcher struct {
281281
result chan Event
282282
stopCh chan struct{}

staging/src/k8s.io/client-go/discovery/discovery_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ func NewDiscoveryClientForConfigOrDie(c *restclient.Config) *DiscoveryClient {
501501

502502
}
503503

504-
// NewDiscoveryClient returns a new DiscoveryClient for the given RESTClient.
504+
// NewDiscoveryClient returns a new DiscoveryClient for the given RESTClient.
505505
func NewDiscoveryClient(c restclient.Interface) *DiscoveryClient {
506506
return &DiscoveryClient{restClient: c, LegacyPrefix: "/api"}
507507
}

staging/src/k8s.io/client-go/rest/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ type TLSClientConfig struct {
203203
// Server should be accessed without verifying the TLS certificate. For testing only.
204204
Insecure bool
205205
// ServerName is passed to the server for SNI and is used in the client to check server
206-
// ceritificates against. If ServerName is empty, the hostname used to contact the
206+
// certificates against. If ServerName is empty, the hostname used to contact the
207207
// server is used.
208208
ServerName string
209209

staging/src/k8s.io/client-go/rest/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ func (b *throttledLogger) attemptToLog() (klog.Level, bool) {
638638
return -1, false
639639
}
640640

641-
// Infof will write a log message at each logLevel specified by the reciever's throttleSettings
641+
// Infof will write a log message at each logLevel specified by the receiver's throttleSettings
642642
// as long as it hasn't written a log message more recently than minLogInterval.
643643
func (b *throttledLogger) Infof(message string, args ...interface{}) {
644644
if logLevel, ok := b.attemptToLog(); ok {

0 commit comments

Comments
 (0)