Skip to content

Commit 5dc8777

Browse files
improve formatting in stopwatch.rst
1 parent ec5beb2 commit 5dc8777

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/stopwatch.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ microtime by yourself. Instead, use the simple
3030
$stopwatch = new Stopwatch();
3131
// starts event named 'eventName'
3232
$stopwatch->start('eventName');
33-
// ... some code goes here
33+
: // ... some code goes here
3434
$event = $stopwatch->stop('eventName');
3535

3636
The :class:`Symfony\\Component\\Stopwatch\\StopwatchEvent` object can be retrieved
@@ -51,13 +51,12 @@ Symfony Profiler tool uses categories to nicely color-code different events.
5151
Usage in symfony
5252
----------------
5353

54-
In a Controller, do:
54+
In a Controller, do::
5555

5656
$stopwatch = $this->get('debug.stopwatch');
5757
$stopwatch->start('anEvent');
5858

59-
Or inject `Symfony\Component\Stopwatch\Stopwatch` by autowiring.
60-
59+
Or inject :class:`Symfony\\Component\\Stopwatch\\Stopwatch` by autowiring.
6160
Thereafter this timing can be seen in the profiler.
6261

6362
Periods

0 commit comments

Comments
 (0)