Skip to content

Commit b4d726f

Browse files
committed
Fix a few typos in the reflect package
1 parent 501781a commit b4d726f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
// that type.
1717
type Equalities map[reflect.Type]reflect.Value
1818

19-
// For convenience, panics on errrors
19+
// For convenience, panics on errors
2020
func EqualitiesOrDie(funcs ...interface{}) Equalities {
2121
e := Equalities{}
2222
if err := e.AddFuncs(funcs...); err != nil {
@@ -229,7 +229,7 @@ func (e Equalities) deepValueEqual(v1, v2 reflect.Value, visited map[visit]bool,
229229
//
230230
// An empty slice *is* equal to a nil slice for our purposes; same for maps.
231231
//
232-
// Unexported field members cannot be compared and will cause an imformative panic; you must add an Equality
232+
// Unexported field members cannot be compared and will cause an informative panic; you must add an Equality
233233
// function for these types.
234234
func (e Equalities) DeepEqual(a1, a2 interface{}) bool {
235235
if a1 == nil || a2 == nil {

staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestEqualities(t *testing.T) {
7272
}
7373
}
7474

75-
func TestDerivates(t *testing.T) {
75+
func TestDerivatives(t *testing.T) {
7676
e := Equalities{}
7777
type Bar struct {
7878
X int

0 commit comments

Comments
 (0)