1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00
Files
revive/testdata/error_strings_issue_1243.go

12 lines
215 B
Go
Raw Normal View History

package fixtures
import (
"errors"
"fmt"
)
func issue1243() {
err := errors.New("An error occurred!") // MATCH /error strings should not be capitalized or end with punctuation or a newline/
fmt.Println(err)
}