Skip to content

Commit fe6c38f

Browse files
committed
minor. refs #13027
1 parent e8f4e6c commit fe6c38f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/console/helpers/progressbar.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,19 @@ which starts, advances and finishes the progress bar automatically::
110110

111111
$progressBar = new ProgressBar($output);
112112

113-
// $iterable can be for example an array ([1, 2, 3, ...])
113+
// $iterable can be array
114114
$iterable = [1, 2];
115115
foreach ($progressBar->iterate($iterable) as $value) {
116116
// ... do some work
117117
}
118-
118+
119119
// or a generator
120120
function iterable() { yield 1; yield 2; ... };
121121
foreach ($progressBar->iterate(iterable()) as $value) {
122122
// ... do some work
123123
}
124124

125-
If ``$iterable = [1, 2]``, the previous code will output the following:
125+
The previous code will output:
126126

127127
.. code-block:: text
128128

0 commit comments

Comments
 (0)