diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-08-13 10:33:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-13 10:33:40 +0200 |
commit | bf291b62e2241e752948f3c5f3073a2898fcfb63 (patch) | |
tree | 643c209830439cf8ed8300dafabd35aef8a94daf | |
parent | 334c4129a4cdf30f0e5095fea54bf95e4c0a2ac5 (diff) | |
parent | 4ff1a341717de6df6c4485d2f07c956656a253c8 (diff) |
Merge pull request #41207 from KoBeWi/you_got_error
Mention that Array.front/back throw error if empty
-rw-r--r-- | doc/classes/Array.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index b79b24e0bc..61df5e092e 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -119,7 +119,7 @@ <return type="Variant"> </return> <description> - 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. </description> </method> <method name="bsearch"> @@ -216,7 +216,7 @@ <return type="Variant"> </return> <description> - 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. </description> </method> <method name="has"> |