Skip to content

Commit

Permalink
doc: update documentation comment in JSONEqBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Crispino committed Dec 2, 2023
1 parent 1a7f377 commit cda242b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assert/assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,7 @@ func NoDirExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
return Fail(t, fmt.Sprintf("directory %q exists", path), msgAndArgs...)
}

// JSONEqBytes asserts that two JSON byte arrays are equivalent.
// JSONEqBytes asserts that two JSON byte slices are equivalent.
//
// assert.JSONEqBytes(t, []byte(`{"hello": "world", "foo": "bar"}`), []byte(`{"foo": "bar", "hello": "world"}`))
func JSONEqBytes(t TestingT, expected, actual []byte, msgAndArgs ...interface{}) bool {
Expand Down

0 comments on commit cda242b

Please sign in to comment.