mirror of
https://github.com/mgechev/revive.git
synced 2025-11-27 22:18:41 +02:00
docs: fix typos (#1553)
This commit is contained in:
@@ -1631,7 +1631,7 @@ _Configuration_: N/A
|
|||||||
_Description_: This rule proposes to replace calls to built-in `print` and `println` with their equivalents from `fmt` standard package.
|
_Description_: This rule proposes to replace calls to built-in `print` and `println` with their equivalents from `fmt` standard package.
|
||||||
|
|
||||||
`print` and `println` built-in functions are not recommended for use-cases other than
|
`print` and `println` built-in functions are not recommended for use-cases other than
|
||||||
[language boostraping and are not guaranteed to stay in the language](https://go.dev/ref/spec#Bootstrapping).
|
[language bootstrapping and are not guaranteed to stay in the language](https://go.dev/ref/spec#Bootstrapping).
|
||||||
|
|
||||||
_Configuration_: N/A
|
_Configuration_: N/A
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ import (
|
|||||||
"github.com/mgechev/revive/rule"
|
"github.com/mgechev/revive/rule"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestUselessFallTrhough(t *testing.T) {
|
func TestUselessFallthrough(t *testing.T) {
|
||||||
testRule(t, "useless_fallthrough", &rule.UselessFallthroughRule{})
|
testRule(t, "useless_fallthrough", &rule.UselessFallthroughRule{})
|
||||||
}
|
}
|
||||||
|
|||||||
2
testdata/golint/var_naming.go
vendored
2
testdata/golint/var_naming.go
vendored
@@ -1,7 +1,7 @@
|
|||||||
// Test for name linting.
|
// Test for name linting.
|
||||||
|
|
||||||
// Package pkg ...
|
// Package pkg ...
|
||||||
package pkg // package names checks are tested elesewhere
|
package pkg // package names checks are tested elsewhere
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|||||||
2
testdata/identical_switch_conditions.go
vendored
2
testdata/identical_switch_conditions.go
vendored
@@ -2,7 +2,7 @@ package fixtures
|
|||||||
|
|
||||||
func enforceSwitchStyle3() {
|
func enforceSwitchStyle3() {
|
||||||
|
|
||||||
switch expression { // skipt tagged switch
|
switch expression { // skip tagged switch
|
||||||
case value:
|
case value:
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user