Skip to content

Commit

Permalink
Fix spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed May 27, 2024
1 parent 7a61575 commit 089c3ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jp/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type delFlagType struct{}

var delFlag = &delFlagType{}

// MustDel removes matching nodes and pinics on error.
// MustDel removes matching nodes and panics on error.
func (x Expr) MustDel(data any) {
if err := x.set(data, delFlag, "delete", false); err != nil {
panic(err)
Expand All @@ -27,7 +27,7 @@ func (x Expr) Del(data any) error {
return x.set(data, delFlag, "delete", false)
}

// MustDelOne removes one matching node and pinics on error.
// MustDelOne removes one matching node and panics on error.
func (x Expr) MustDelOne(data any) {
if err := x.set(data, delFlag, "delete", true); err != nil {
panic(err)
Expand Down

0 comments on commit 089c3ea

Please sign in to comment.