From f592600ee8b2793d39932407229baf984aae4a26 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 (cherry picked from commit 4ff1a341717de6df6c4485d2f07c956656a253c8) --- 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 f7c1d678a20..292c9ab0b97 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -99,7 +99,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. @@ -192,7 +192,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.