diff --git a/CHANGES.md b/CHANGES.md index 163d6d5..d182354 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -59,6 +59,6 @@ * Fixed issue #12: Arrays are not properly compared (@samlitowitz) -## v1.0.0 releaesd 2017-10-27 +## v1.0.0 released 2017-10-27 * First release diff --git a/deep.go b/deep.go index 4be3e1f..28f475c 100644 --- a/deep.go +++ b/deep.go @@ -380,10 +380,10 @@ func (c *cmp) equals(a, b reflect.Value, level int) { if c.flag[FLAG_IGNORE_SLICE_ORDER] { // Compare slices by value and value count; ignore order. - // Value equality is impliclity established by the maps: + // Value equality is implicitly established by the maps: // any value v1 will hash to the same map value if it's equal - // to another value v2. Then equality is determiend by value - // count: presuming v1==v2, then the slics are equal if there + // to another value v2. Then equality is determined by value + // count: presuming v1==v2, then the slices are equal if there // are equal numbers of v1 in each slice. am := map[interface{}]int{} for i := 0; i < a.Len(); i++ { diff --git a/deep_test.go b/deep_test.go index 74377e1..e743ae8 100644 --- a/deep_test.go +++ b/deep_test.go @@ -140,7 +140,7 @@ func TestTypeMismatch(t *testing.T) { t.Error("wrong diff:", diff[0]) } - // Same pkg name but differnet full paths + // Same pkg name but different full paths // https://github.com/go-test/deep/issues/39 err1 := v1.Error{} err2 := v2.Error{} @@ -1099,7 +1099,7 @@ func TestPointer(t *testing.T) { } func TestTime(t *testing.T) { - // In an interable kind (i.e. a struct) + // In an iterable kind (i.e. a struct) type sTime struct { T time.Time } @@ -1566,7 +1566,7 @@ func TestSliceOrderStruct(t *testing.T) { // https://github.com/go-test/deep/issues/28 // This is NOT supported but Go is so wonderful that it just happens to work. // But again: not supported. So if this test starts to fail or be a problem, - // it can and should be removed becuase the docs say it's not supported. + // it can and should be removed because the docs say it's not supported. type T struct{ i int } a := []T{ {i: 1},