8000 Correct the regress ProgressBar docs · jameshalsall/symfony-docs@c061370 · GitHub
[go: up one dir, main page]

Skip to content

Commit c061370

Browse files
author
James Halsall
committed
Correct the regress ProgressBar docs
1 parent 18fe182 commit c061370

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/console/helpers/progressbar.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ number of units, and advance the progress as the command executes::
3737

3838
.. tip::
3939

40-
You can also regress the progress bar (i.e. step backwards) by using the
41-
``$progress->regress()`` method. Like the ``advance()`` method you can also
42-
pass a unit value to ``regress()`` to control how many steps the progress is
43-
regressed by.
40+
You can also regress the progress bar (i.e. step backwards) by calling
41+
``$progress->advance()`` with a negative value. For example, if you call
42+
``$progress->advance(-2)`` then it will regress the progress bar 2 steps.
4443

4544
Instead of advancing the bar by a number of steps (with the
4645
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::advance` method),

0 commit comments

Comments
 (0)
0