Skip to content

Commit

Permalink
fix govet message for <go1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Feb 17, 2021
1 parent 4d6aa3c commit 88f1bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testdata/govet.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func Govet() error {
return &os.PathError{"first", "path", os.ErrNotExist} // ERROR "composites: \\`io/fs.PathError\\` composite literal uses unkeyed fields"
return &os.PathError{"first", "path", os.ErrNotExist} // ERROR "composites: \\`(os|io/fs)?\\.PathError\\` composite literal uses unkeyed fields"
}

func GovetShadow(f io.Reader, buf []byte) (err error) {
Expand Down

0 comments on commit 88f1bdc

Please sign in to comment.