From 33fba2597ea35facbb760cbec1c465ccc2301a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20G=C3=B6kcen?= Date: Thu, 18 Apr 2019 15:45:19 +0200 Subject: [PATCH] Correct the doc of array.slice function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The minor mistake in the documentation of array.slice function is corrected. Signed-off-by: Sedat Gökcen --- docs/content/docs/language-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/docs/language-reference.md b/docs/content/docs/language-reference.md index 5076523741..af41021d41 100644 --- a/docs/content/docs/language-reference.md +++ b/docs/content/docs/language-reference.md @@ -54,7 +54,7 @@ complex types. | Built-in | Description | | ------- |-------------| | ``output := array.concat(array, array)`` | ``output`` is the result of concatenating the two input arrays together. | - ``output := array.slice(array, startIndex, stopIndex)`` | ``output`` is the part of the ``array`` from ``startIndex`` to ``stopIndex`` including the first but excluding the last. If `startIndex < stopIndex` then `output == []`. If both `startIndex` and `stopIndex` are less than zero, `output == []`. Otherwise, `startIndex` and `stopIndex` are clamped to 0 and `count(array)` respectively. | + ``output := array.slice(array, startIndex, stopIndex)`` | ``output`` is the part of the ``array`` from ``startIndex`` to ``stopIndex`` including the first but excluding the last. If `startIndex >= stopIndex` then `output == []`. If both `startIndex` and `stopIndex` are less than zero, `output == []`. Otherwise, `startIndex` and `stopIndex` are clamped to 0 and `count(array)` respectively. | ### Sets