瀏覽代碼

Merge pull request #50560 from noidexe/patch-1

Rémi Verschelde 3 年之前
父節點
當前提交
90f8cd89a7
共有 3 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      doc/classes/PoolByteArray.xml
  2. 1 0
      doc/classes/PoolIntArray.xml
  3. 1 0
      doc/classes/PoolRealArray.xml

+ 1 - 0
doc/classes/PoolByteArray.xml

@@ -112,6 +112,7 @@
 			<argument index="0" name="idx" type="int" />
 			<argument index="0" name="idx" type="int" />
 			<description>
 			<description>
 				Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
 				Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
+				[b]Note:[/b] Added elements are not automatically initialized to 0 and will contain garbage, i.e. indeterminate values.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="set">
 		<method name="set">

+ 1 - 0
doc/classes/PoolIntArray.xml

@@ -65,6 +65,7 @@
 			<argument index="0" name="idx" type="int" />
 			<argument index="0" name="idx" type="int" />
 			<description>
 			<description>
 				Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
 				Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
+				[b]Note:[/b] Added elements are not automatically initialized to 0 and will contain garbage, i.e. indeterminate values.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="set">
 		<method name="set">

+ 1 - 0
doc/classes/PoolRealArray.xml

@@ -65,6 +65,7 @@
 			<argument index="0" name="idx" type="int" />
 			<argument index="0" name="idx" type="int" />
 			<description>
 			<description>
 				Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
 				Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
+				[b]Note:[/b] Added elements are not automatically initialized to 0 and will contain garbage, i.e. indeterminate values.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="set">
 		<method name="set">