Merge pull request #91068 from mcristina422/equalTypos

Fix a few typos in the reflect package
This commit is contained in:
Kubernetes Prow Robot 2020-05-14 00:47:04 -07:00 committed by GitHub
commit 7580666e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -72,7 +72,7 @@ func TestEqualities(t *testing.T) {
}
}
func TestDerivates(t *testing.T) {
func TestDerivatives(t *testing.T) {
e := Equalities{}
type Bar struct {
X int