Skip to content

Commit

Permalink
Fix broken negation example in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Drenmi committed May 3, 2024
1 parent bdc902c commit 5cb417a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docsite/source/operations.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ is_natural_and_odd.call(-1).success? # => false
``` ruby
is_present = build do
negation(empty?)
negation { empty? }
end

is_present.call([1]).success? # => true
Expand All @@ -166,7 +166,7 @@ is_present.call("").success? # => false
``` ruby
is_named = build do
key name: [:user, :name] do
str? & negation(empty?)
str? & negation { empty? }
end
end

Expand Down

0 comments on commit 5cb417a

Please sign in to comment.