Skip to content

Commit

Permalink
Merge pull request #1042 from carapace-sh/doc-typo
Browse files Browse the repository at this point in the history
doc: fix typo
  • Loading branch information
rsteube authored Sep 22, 2024
2 parents 3fea37a + f212e46 commit dd08710
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions action.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func (a Action) UniqueListF(divider string, f func(s string) string) Action {
})
}

// Unless skips invokation if given condition is true.
// Unless skips invocation if given condition is true.
func (a Action) Unless(condition bool) Action {
return ActionCallback(func(c Context) Action {
if condition {
Expand All @@ -463,7 +463,7 @@ func (a Action) Unless(condition bool) Action {
})
}

// UnlessF skips invokation if given condition returns true.
// UnlessF skips invocation if given condition returns true.
func (a Action) UnlessF(condition func(c Context) bool) Action {
return ActionCallback(func(c Context) Action {
if condition(c) {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/carapace/action/unless.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Unless

[`Unless`] skips invokation if given condition is `true`.
[`Unless`] skips invocation if given condition is `true`.

```go
carapace.ActionMultiPartsN(":", 2, func(c carapace.Context) carapace.Action {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/carapace/action/unlessF.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UnlessF

[`UnlessF`] skips invokation if given [condition] returns `true`.
[`UnlessF`] skips invocation if given [condition] returns `true`.

```go
carapace.ActionValues(
Expand Down

0 comments on commit dd08710

Please sign in to comment.