From b880bde10f5a32c36563c1a0842f167d01401a37 Mon Sep 17 00:00:00 2001 From: George Marques Date: Wed, 8 Mar 2023 12:13:17 -0300 Subject: [PATCH] Remove outdated note about const in Dictionary and Array docs (cherry picked from commit d2b1d6e69badfd9c5d370e5599971334ab3034ef) --- doc/classes/Array.xml | 1 - doc/classes/Dictionary.xml | 1 - 2 files changed, 2 deletions(-) diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index c4fec5a7295..86f8f357f86 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -41,7 +41,6 @@ [b]Note:[/b] Concatenating with the [code]+=[/code] operator will create a new array, which has a cost. If you want to append another array to an existing array, [method append_array] is more efficient. [b]Note:[/b] Arrays are always passed by reference. To get a copy of an array that can be modified independently of the original array, use [method duplicate]. [b]Note:[/b] Erasing elements while iterating over arrays is [b]not[/b] supported and will result in unpredictable behavior. - [b]Note:[/b] When declaring an array with [code]const[/code], the array itself can still be mutated by defining the values at individual indices or pushing/removing elements. Using [code]const[/code] will only prevent assigning the constant with another value after it was initialized. diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index a5a50b4c6a1..d31fd75a045 100644 --- a/doc/classes/Dictionary.xml +++ b/doc/classes/Dictionary.xml @@ -135,7 +135,6 @@ [/csharp] [/codeblocks] [b]Note:[/b] Erasing elements while iterating over dictionaries is [b]not[/b] supported and will result in unpredictable behavior. - [b]Note:[/b] When declaring a dictionary with [code]const[/code], the dictionary becomes read-only. A read-only Dictionary's entries cannot be overridden at run-time. This does [i]not[/i] affect nested [Array] and [Dictionary] values. $DOCS_URL/tutorials/scripting/gdscript/gdscript_basics.html#dictionary