Document that Dictionary is always passed as reference

See #38792.

(cherry picked from commit 675fea1648)
This commit is contained in:
Hugo Locurcio
2020-05-16 23:52:40 +02:00
committed by Rémi Verschelde
parent 4779d289d5
commit 8ebcdeb3d7
2 changed files with 2 additions and 1 deletions

View File

@@ -20,7 +20,7 @@
var array2 = [3, "Four"]
print(array1 + array2) # ["One", 2, 3, "Four"]
[/codeblock]
Arrays are always passed by reference.
[b]Note:[/b] Arrays are always passed by reference. To get a copy of an array which can be modified independently of the original array, use [method duplicate].
</description>
<tutorials>
</tutorials>