summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkleonc <9283098+kleonc@users.noreply.github.com>2022-10-30 13:36:14 +0100
committerkleonc <9283098+kleonc@users.noreply.github.com>2022-10-30 13:42:24 +0100
commit221a89f2ef5d3310aafeec7a275da3c5a3b1125a (patch)
treeaaec6ca860c5a52fcf62d7b6012d8fe3a1891931 /doc
parentad3f2a234082f0d62820094199c05855115c1341 (diff)
Docs Clarify `Array.fill` behavior when reference type is passed in
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Array.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml
index 0f76639caf..b8e0ac0c2a 100644
--- a/doc/classes/Array.xml
+++ b/doc/classes/Array.xml
@@ -272,6 +272,7 @@
array.Fill(0); // Initialize the 10 elements to 0.
[/csharp]
[/codeblocks]
+ [b]Note:[/b] If [param value] is of a reference type ([Object]-derived, [Array], [Dictionary], etc.) then the array is filled with the references to the same object, i.e. no duplicates are created.
</description>
</method>
<method name="filter" qualifiers="const">