From 6851741c8ad44bf978dbdc4bff09b35db8ed3b88 Mon Sep 17 00:00:00 2001 From: ibalbaert Date: Thu, 22 Jun 2023 11:05:48 +0200 Subject: [PATCH] Update Result.roc Changed deprecated Num.negate in Result.map docs to Num.neg Signed-off-by: ibalbaert --- crates/compiler/builtins/roc/Result.roc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/compiler/builtins/roc/Result.roc b/crates/compiler/builtins/roc/Result.roc index a9075aebbf..7ff2035176 100644 --- a/crates/compiler/builtins/roc/Result.roc +++ b/crates/compiler/builtins/roc/Result.roc @@ -42,8 +42,8 @@ withDefault = \result, default -> ## function on it. Then returns a new `Ok` holding the transformed value. If the ## result is `Err`, this has no effect. Use [mapErr] to transform an `Err`. ## ``` -## Result.map (Ok 12) Num.negate -## Result.map (Err "yipes!") Num.negate +## Result.map (Ok 12) Num.neg +## Result.map (Err "yipes!") Num.neg ## ``` ## ## Functions like `map` are common in Roc; see for example [List.map],