From 7404d4ce7fb9bc4362a4c560406e4685c04cfcd6 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 2 Mar 2016 09:19:02 -0500 Subject: [PATCH] made dict example less ambigous fixes #14748 --- docsite/rst/YAMLSyntax.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docsite/rst/YAMLSyntax.rst b/docsite/rst/YAMLSyntax.rst index 8189a6caf6..97698d6896 100644 --- a/docsite/rst/YAMLSyntax.rst +++ b/docsite/rst/YAMLSyntax.rst @@ -37,7 +37,7 @@ All members of a list are lines beginning at the same indentation level starting A dictionary is represented in a simple ``key: value`` form (the colon must be followed by a space):: # An employee record - - martin: + martin: name: Martin D'vloper job: Developer skill: Elite @@ -45,9 +45,8 @@ A dictionary is represented in a simple ``key: value`` form (the colon must be f Dictionaries and lists can also be represented in an abbreviated form if you really want to:: --- - employees: - - martin: {name: Martin D'vloper, job: Developer, skill: Elite} - fruits: ['Apple', 'Orange', 'Strawberry', 'Mango'] + martin: {name: Martin D'vloper, job: Developer, skill: Elite} + fruits: ['Apple', 'Orange', 'Strawberry', 'Mango] .. _truthiness: