Skip to content

Commit

Permalink
Fix Must godoc example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Sharman committed Oct 8, 2024
1 parent 3178541 commit e5884d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func ErrorIsAll(expected ...error) ErrorCheck {
//
// See also Must0, Must2, and Must3 for working with functions of other coarity.
//
// bytes := expect.Must(t)(io.ReadAll(reader))
// bytes := expect.Must(io.ReadAll(reader))(t)
func Must[V any](value V, err error) func(T) V {
return func(t T) V {
t.Helper()
Expand Down

0 comments on commit e5884d4

Please sign in to comment.