summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-26 11:28:32 +0100
committerGitHub <noreply@github.com>2021-02-26 11:28:32 +0100
commitd7e6c20c82df9179bc4e9b7706dc7a09ee554974 (patch)
tree2c3e08307a658c079c7e89ed3cbac83726099b26
parentd02535f509bc2c2c0c2ed22a1e037bd0995fd98d (diff)
parent31243e377f1d2b934322c6c7b7e0573cc63e6c66 (diff)
Merge pull request #46443 from timothyqiu/doc-bsearch
Fixes typo in Array::bsearch_custom doc
-rw-r--r--doc/classes/Array.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml
index cea5360234..8fb688a8ae 100644
--- a/doc/classes/Array.xml
+++ b/doc/classes/Array.xml
@@ -197,7 +197,7 @@
</argument>
<description>
Finds the index of an existing value (or the insertion index that maintains sorting order, if the value is not yet present in the array) using binary search and a custom comparison method. Optionally, a [code]before[/code] specifier can be passed. If [code]false[/code], the returned index comes after all existing entries of the value in the array. The custom method receives two arguments (an element from the array and the value searched for) and must return [code]true[/code] if the first argument is less than the second, and return [code]false[/code] otherwise.
- [b]Note:[/b] Calling [method bsearch] on an unsorted array results in unexpected behavior.
+ [b]Note:[/b] Calling [method bsearch_custom] on an unsorted array results in unexpected behavior.
</description>
</method>
<method name="clear">