Skip to content

Commit 88f1bdc

Browse files
committed
fix govet message for <go1.16
1 parent 4d6aa3c commit 88f1bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testdata/govet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

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

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

0 commit comments

Comments
 (0)