diff --git a/response.go b/response.go index 76c3a3d..bbe6d2c 100644 --- a/response.go +++ b/response.go @@ -19,7 +19,7 @@ var ( // was not a valid numeric type. ErrBadJSONAPIID = errors.New( "id should be either string, int(8,16,32,64) or uint(8,16,32,64)") - // ErrExpectedSlice is returned when a variable or arugment was expected to + // ErrExpectedSlice is returned when a variable or argument was expected to // be a slice of *Structs; MarshalMany will return this error when its // interface{} argument is invalid. ErrExpectedSlice = errors.New("models should be a slice of struct pointers") diff --git a/response_test.go b/response_test.go index 71589dc..76529b7 100644 --- a/response_test.go +++ b/response_test.go @@ -290,9 +290,9 @@ func TestOmitsEmptyAnnotation(t *testing.T) { t.Fatalf("Was expecting the data.attributes.pages key/value to have been omitted - it was not and had a value of %v", val) } - // Verify the implicity omitted fields were omitted + // Verify the implicitly omitted fields were omitted if val, exists := attributes["PublishedAt"]; exists { - t.Fatalf("Was expecting the data.attributes.PublishedAt key/value to have been implicity omitted - it was not and had a value of %v", val) + t.Fatalf("Was expecting the data.attributes.PublishedAt key/value to have been implicitly omitted - it was not and had a value of %v", val) } // Verify the unset fields were not omitted @@ -326,7 +326,7 @@ func TestHasPrimaryAnnotation(t *testing.T) { } if data.ID != "5" { - t.Fatalf("ID not transfered") + t.Fatalf("ID not transferred") } }