Corrected spelling mistakes.

This commit is contained in:
Aren Patel 2017-09-13 12:52:31 -07:00
parent 3b01bb5fe6
commit 5e0c586099
No known key found for this signature in database
GPG Key ID: 90489CDA50BCDE34
2 changed files with 4 additions and 4 deletions

View File

@ -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")

View File

@ -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")
}
}