Skip to content

Commit 1854bb5

Browse files
authored
Fix some typos (mostly found by codespell) (#1514)
Signed-off-by: Stefan Weil <[email protected]>
1 parent ff2c55e commit 1854bb5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

command_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1414,16 +1414,16 @@ func TestPersistentHooks(t *testing.T) {
14141414
name string
14151415
got string
14161416
}{
1417-
// TODO: currently PersistenPreRun* defined in parent does not
1418-
// run if the matchin child subcommand has PersistenPreRun.
1417+
// TODO: currently PersistentPreRun* defined in parent does not
1418+
// run if the matching child subcommand has PersistentPreRun.
14191419
// If the behavior changes (https://github.com/spf13/cobra/issues/252)
14201420
// this test must be fixed.
14211421
{"parentPersPreArgs", parentPersPreArgs},
14221422
{"parentPreArgs", parentPreArgs},
14231423
{"parentRunArgs", parentRunArgs},
14241424
{"parentPostArgs", parentPostArgs},
1425-
// TODO: currently PersistenPostRun* defined in parent does not
1426-
// run if the matchin child subcommand has PersistenPostRun.
1425+
// TODO: currently PersistentPostRun* defined in parent does not
1426+
// run if the matching child subcommand has PersistentPostRun.
14271427
// If the behavior changes (https://github.com/spf13/cobra/issues/252)
14281428
// this test must be fixed.
14291429
{"parentPersPostArgs", parentPersPostArgs},

powershell_completions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Register-ArgumentCompleter -CommandName '%[1]s' -ScriptBlock {
233233
Default {
234234
# Like MenuComplete but we don't want to add a space here because
235235
# the user need to press space anyway to get the completion.
236-
# Description will not be shown because thats not possible with TabCompleteNext
236+
# Description will not be shown because that's not possible with TabCompleteNext
237237
[System.Management.Automation.CompletionResult]::new($($comp.Name | __%[1]s_escapeStringWithSpecialChars), "$($comp.Name)", 'ParameterValue', "$($comp.Description)")
238238
}
239239
}

0 commit comments

Comments
 (0)