Skip to content

Commit def7c99

Browse files
Jamal Youssefixabbuh
Jamal Youssefi
authored andcommitted
fix dumper default representation
1 parent fe24815 commit def7c99

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/yaml/introduction.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,15 @@ Array Expansion and Inlining
167167
............................
168168

169169
The YAML format supports two kind of representation for arrays, the expanded
170-
one, and the inline one. By default, the dumper uses the inline
170+
one, and the inline one. By default, the dumper uses the expanded
171171
representation:
172172

173173
.. code-block:: yaml
174174
175-
{ foo: bar, bar: { foo: bar, bar: baz } }
175+
foo: bar
176+
bar:
177+
foo: bar
178+
bar: baz
176179
177180
The second argument of the :method:`Symfony\\Component\\Yaml\\Yaml::dump`
178181
method customizes the level at which the output switches from the expanded

0 commit comments

Comments
 (0)