8000 minor #10243 Fixed Modifying Rendered Tables example (jeremyFreeAgent) · symfony/symfony-docs@7f8af6f · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f8af6f

Browse files
committed
minor #10243 Fixed Modifying Rendered Tables example (jeremyFreeAgent)
This PR was merged into the 4.1 branch. Discussion ---------- Fixed Modifying Rendered Tables example Small typo fix + updated the render. Commits ------- 769571a Fixed Modifying Rendered Tables example
2 parents 0e9a651 + 769571a commit 7f8af6f

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