From 4ff1a341717de6df6c4485d2f07c956656a253c8 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Wed, 12 Aug 2020 17:53:18 +0200 Subject: [PATCH] Mention that Array.front/back throw error if empty --- doc/classes/Array.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index b79b24e0bc5..61df5e092e1 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -119,7 +119,7 @@ - Returns the last element of the array, or [code]null[/code] if the array is empty. + Returns the last element of the array. Throws an error and returns [code]null[/code] if the array is empty. @@ -216,7 +216,7 @@ - Returns the first element of the array, or [code]null[/code] if the array is empty. + Returns the first element of the array. Throws an error and returns [code]null[/code] if the array is empty.