8000 Fixed Modifying Rendered Tables example · symfony/symfony-docs@769571a · GitHub
[go: up one dir, main page]

Skip to content

Commit 769571a

Browse files
Fixed Modifying Rendered Tables example
Small typo fix + updated the render
1 parent 332e6c4 commit 769571a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

components/console/helpers/table.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,18 +353,18 @@ The only requirement to append rows is that the table must be rendered inside a
353353
$section = $output->section();
354354
$table = new Table($section);
355355

356-
$table->addRow(['Row 1']);
356+
$table->addRow(['Love']);
357357
$table->render();
358358

359-
$table->addRow(['Row 2']);
359+
$table->appendRow(['Symfony']);
360360
}
361361
}
362362

363363
This will display the following table in the terminal:
364364

365365
.. code-block:: terminal
366366
367-
+-------+
368-
| Row 1 |
369-
| Row 2 |
370-
+-------+
367+
+---------+
368+
| Love |
369+
| Symfony |
370+
+---------+

0 commit comments

Comments
 (0)
0