From 70fa51b7a515e32c7df45aa4750da2b5f465a397 Mon Sep 17 00:00:00 2001 From: Tomasz Date: Tue, 4 Sep 2018 16:18:28 +0200 Subject: [PATCH] fix package names in docs for errorf rule (#56) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d0fdc88..1f5af7a 100644 --- a/README.md +++ b/README.md @@ -232,7 +232,7 @@ List of all available rules. The rules ported from `golint` are left unchanged a | `time-naming` | n/a | Conventions around the naming of time variables. | yes | yes | | `var-declaration` | n/a | Reduces redundancies around variable declaration. | yes | yes | | `unexported-return` | n/a | Warns when a public return is from unexported type. | yes | yes | -| `errorf` | n/a | Should replace `error.New(fmt.Sprintf())` with `error.Errorf()` | yes | yes | +| `errorf` | n/a | Should replace `errors.New(fmt.Sprintf())` with `fmt.Errorf()` | yes | yes | | `blank-imports` | n/a | Disallows blank imports | yes | no | | `context-as-argument` | n/a | `context.Context` should be the first argument of a function. | yes | no | | `dot-imports` | n/a | Forbids `.` imports. | yes | no |