Pārlūkot izejas kodu

Docs Clarify Array.fill behavior when reference type is passed in

(cherry picked from commit 5f0141377447f8dd396235b3b57994fc126c80de)
kleonc 2 gadi atpakaļ
vecāks
revīzija
ac40d19ac5
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      doc/classes/Array.xml

+ 1 - 0
doc/classes/Array.xml

@@ -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">