Merge pull request #68087 from kleonc/array-fill-docs-note-3x

[3.x][Docs] Clarify `Array.fill` behavior when reference type is passed in
This commit is contained in:
Rémi Verschelde 2022-11-02 23:01:23 +01:00
commit 4c22971292
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -186,6 +186,7 @@
array.resize(10)
array.fill(0) # Initialize the 10 elements to 0.
[/codeblock]
[b]Note:[/b] If [code]value[/code] 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="find">