Update YAMLSyntax.rst (#47491)

* Update YAMLSyntax.rst to correct syntax of a list vs dict.
This commit is contained in:
d3nisko 2018-10-25 22:23:47 +02:00 committed by Sandra McCann
parent e5664c45a5
commit 6c2e4c1ca8

View file

@ -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".