From 229264f7d1e5de0d1e11a6506e3877e6b5a96f87 Mon Sep 17 00:00:00 2001 From: hellerve Date: Sun, 24 May 2020 12:51:11 +0200 Subject: [PATCH] core: update dcostring for range-or-default --- core/ArrayExt.carp | 4 ++-- docs/core/Array.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/ArrayExt.carp b/core/ArrayExt.carp index d915b8f2..a802e284 100644 --- a/core/ArrayExt.carp +++ b/core/ArrayExt.carp @@ -24,8 +24,8 @@ the input given was wrong, containing an error message.") (set! e (+ e step)))) (Result.Success x)))) - (doc range-or-default "is an unsafe version of [`range](#range). It returns -an empty array on failure.") + (doc range-or-default "is a version of [`range`](#range) that returns an empty +array on failure.") (defn range-or-default [start end step] (Result.from-success (range start end step) [])) ) diff --git a/docs/core/Array.html b/docs/core/Array.html index 87848795..4dfc8b30 100644 --- a/docs/core/Array.html +++ b/docs/core/Array.html @@ -981,8 +981,8 @@ the input given was wrong, containing an error message.

(range-or-default start end step)

-

is an unsafe version of `range. It returns -an empty array on failure.

+

is a version of range that returns an empty +array on failure.