diff options
author | George Marques <george@gmarqu.es> | 2023-03-08 12:13:17 -0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-13 14:27:48 +0100 |
commit | b880bde10f5a32c36563c1a0842f167d01401a37 (patch) | |
tree | 0ada637d15166996c810a58216edcd3cdab86d4d /doc | |
parent | 80cde341d46ada45d21bb5b5f81937b22386e589 (diff) |
Remove outdated note about const in Dictionary and Array docs
(cherry picked from commit d2b1d6e69badfd9c5d370e5599971334ab3034ef)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Array.xml | 1 | ||||
-rw-r--r-- | doc/classes/Dictionary.xml | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index c4fec5a729..86f8f357f8 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. </description> <tutorials> </tutorials> diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index a5a50b4c6a..d31fd75a04 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. </description> <tutorials> <link title="GDScript basics: Dictionary">$DOCS_URL/tutorials/scripting/gdscript/gdscript_basics.html#dictionary</link> |