Skip to content

Commit 864a43e

Browse files
committed
Tweaks and fixes
1 parent f2c2e8a commit 864a43e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/console/helpers/progressbar.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ Instead of advancing the bar by a number of steps (with the
4646
you can also set the current progress by calling the
4747
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setProgress` method.
4848

49-
If you rea resuming long-standing tasks, it's useful to start drawing the progress
49+
If you are resuming long-standing tasks, it's useful to start drawing the progress
5050
bar at a certain point. Use the second optional argument of ``start()`` to set
5151
that starting point::
5252

5353
use Symfony\Component\Console\Helper\ProgressBar;
5454

55-
// creates a new progress bar (10,000 units)
56-
$progressBar = new ProgressBar($output, 10000);
55+
// creates a new progress bar (100 units)
56+
$progressBar = new ProgressBar($output, 100);
5757

58-
// displays the progress bar starting at 2,500 completed units
59-
$progressBar->start(null, 2500);
58+
// displays the progress bar starting at 25 completed units
59+
$progressBar->start(null, 25);
6060

6161
.. versionadded:: 6.2
6262

0 commit comments

Comments
 (0)