From 5cb417a4508a12194a0a81c98c735b1580ceda74 Mon Sep 17 00:00:00 2001 From: Ted Johansson Date: Fri, 3 May 2024 22:44:01 +0800 Subject: [PATCH] Fix broken negation example in documentation --- docsite/source/operations.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docsite/source/operations.html.md b/docsite/source/operations.html.md index b8c93bf..2271732 100644 --- a/docsite/source/operations.html.md +++ b/docsite/source/operations.html.md @@ -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 @@ -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