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.
|
||||
|
||||
`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
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@ import (
|
||||
"github.com/mgechev/revive/rule"
|
||||
)
|
||||
|
||||
func TestUselessFallTrhough(t *testing.T) {
|
||||
func TestUselessFallthrough(t *testing.T) {
|
||||
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.
|
||||
|
||||
// Package pkg ...
|
||||
package pkg // package names checks are tested elesewhere
|
||||
package pkg // package names checks are tested elsewhere
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
2
testdata/identical_switch_conditions.go
vendored
2
testdata/identical_switch_conditions.go
vendored
@@ -2,7 +2,7 @@ package fixtures
|
||||
|
||||
func enforceSwitchStyle3() {
|
||||
|
||||
switch expression { // skipt tagged switch
|
||||
switch expression { // skip tagged switch
|
||||
case value:
|
||||
default:
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user