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.