Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit 5e0c586

Browse files
committed
Corrected spelling mistakes.
1 parent 3b01bb5 commit 5e0c586

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var (
1919
// was not a valid numeric type.
2020
ErrBadJSONAPIID = errors.New(
2121
"id should be either string, int(8,16,32,64) or uint(8,16,32,64)")
22-
// ErrExpectedSlice is returned when a variable or arugment was expected to
22+
// ErrExpectedSlice is returned when a variable or argument was expected to
2323
// be a slice of *Structs; MarshalMany will return this error when its
2424
// interface{} argument is invalid.
2525
ErrExpectedSlice = errors.New("models should be a slice of struct pointers")

response_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ func TestOmitsEmptyAnnotation(t *testing.T) {
290290
t.Fatalf("Was expecting the data.attributes.pages key/value to have been omitted - it was not and had a value of %v", val)
291291
}
292292

293-
// Verify the implicity omitted fields were omitted
293+
// Verify the implicitly omitted fields were omitted
294294
if val, exists := attributes["PublishedAt"]; exists {
295-
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)
295+
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)
296296
}
297297

298298
// Verify the unset fields were not omitted
@@ -326,7 +326,7 @@ func TestHasPrimaryAnnotation(t *testing.T) {
326326
}
327327

328328
if data.ID != "5" {
329-
t.Fatalf("ID not transfered")
329+
t.Fatalf("ID not transferred")
330330
}
331331
}
332332

0 commit comments

Comments
 (0)