docs: Clarify what literal strings mean [skip ci]

Someone on IRC was confused by this paragraph.
pull/7770/head
Nirbheek Chauhan 4 years ago
parent 13a8e1d26e
commit 94ea9d97be
  1. 5
      docs/markdown/Syntax.md

@ -366,8 +366,9 @@ The following methods are defined for all arrays:
## Dictionaries ## Dictionaries
Dictionaries are delimited by curly braces. A dictionary can contain an Dictionaries are delimited by curly braces. A dictionary can contain an
arbitrary number of key value pairs. Keys are required to be strings, values can arbitrary number of key: value pairs. Keys are required to be strings, but values can
be objects of any type. Prior to *0.53.0* keys were required to be literal strings. be objects of any type. Prior to *0.53.0* keys were required to be literal
strings, i.e., you could not use a variable containing a string value as a key.
```meson ```meson
my_dict = {'foo': 42, 'bar': 'baz'} my_dict = {'foo': 42, 'bar': 'baz'}

Loading…
Cancel
Save