Skip to content

Commit ba0029b

Browse files
authored
Merge pull request #3 from chrisd8088/constant-fmt-strings
Use constant format string
2 parents e96144b + dbc7d57 commit ba0029b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netrc/netrc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func newToken(rawb []byte) (*token, error) {
358358
t.kind = tkComment // this is a comment
359359
return &t, nil
360360
}
361-
return &t, fmt.Errorf("keyword expected; got " + string(tkind))
361+
return &t, fmt.Errorf("keyword expected; got %s", string(tkind))
362362
}
363363
return &t, nil
364364
}

0 commit comments

Comments
 (0)