summaryrefslogtreecommitdiffstats
path: root/core/variant/array.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-04-01 13:32:22 +0200
committerGitHub <noreply@github.com>2021-04-01 13:32:22 +0200
commit4b6e9f315739c4400e3c2d27cd72028779bce1e5 (patch)
tree0625f98287fd20f0ffd6002b4c8ee4f81e068bb8 /core/variant/array.cpp
parent7db85fffb50ef98dbf175189fba17a4d7dc85f5d (diff)
parent755c70b871c659df2d7c3a003593f38775dd7b5d (diff)
downloadredot-engine-4b6e9f315739c4400e3c2d27cd72028779bce1e5.tar.gz
Merge pull request #46991 from madmiraal/rename-invert-reverse
Rename Array.invert() to Array.reverse()
Diffstat (limited to 'core/variant/array.cpp')
-rw-r--r--core/variant/array.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant/array.cpp b/core/variant/array.cpp
index 707140ba1b..2ad728ec5e 100644
--- a/core/variant/array.cpp
+++ b/core/variant/array.cpp
@@ -446,8 +446,8 @@ int Array::bsearch_custom(const Variant &p_value, Callable p_callable, bool p_be
return bisect(_p->array, p_value, p_before, less);
}
-void Array::invert() {
- _p->array.invert();
+void Array::reverse() {
+ _p->array.reverse();
}
void Array::push_front(const Variant &p_value) {