Update YAMLSyntax.rst (#47491)
* Update YAMLSyntax.rst to correct syntax of a list vs dict.
This commit is contained in:
parent
e5664c45a5
commit
6c2e4c1ca8
1 changed files with 5 additions and 6 deletions
|
@ -30,11 +30,10 @@ All members of a list are lines beginning at the same indentation level starting
|
|||
|
||||
---
|
||||
# A list of tasty fruits
|
||||
fruits:
|
||||
- Apple
|
||||
- Orange
|
||||
- Strawberry
|
||||
- Mango
|
||||
- Apple
|
||||
- Orange
|
||||
- Strawberry
|
||||
- Mango
|
||||
...
|
||||
|
||||
A dictionary is represented in a simple ``key: value`` form (the colon must be followed by a space)::
|
||||
|
@ -67,7 +66,7 @@ Dictionaries and lists can also be represented in an abbreviated form if you rea
|
|||
|
||||
---
|
||||
martin: {name: Martin D'vloper, job: Developer, skill: Elite}
|
||||
fruits: ['Apple', 'Orange', 'Strawberry', 'Mango']
|
||||
['Apple', 'Orange', 'Strawberry', 'Mango']
|
||||
|
||||
These are called "Flow collections".
|
||||
|
||||
|
|
Loading…
Reference in a new issue