1
0
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:
Oleksandr Redko
2025-11-06 12:50:18 +02:00
committed by GitHub
parent cc04b177a4
commit 480ab4f1ae
4 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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{})
} }

View File

@@ -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"

View File

@@ -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:
} }