Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code formatting in timers docs #794

Merged
merged 1 commit into from
Nov 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/source/timer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ seconds for the timer to run (which could potentially mean that the timer never
gets performed).

For example, a timer which repeats every 0.5 seconds and runs no more than 10
times and for no longer than 10 seconds can be started like this:
times and for no longer than 10 seconds can be started like this -

.. code-block:: python

Expand All @@ -112,7 +112,7 @@ times and for no longer than 10 seconds can be started like this:

:py:class:`~pyface.timer.timer.PyfaceTimer` also provides two convenience class
methods for creating and starting a timer in one line. The above example
could instead be written as::
could instead be written as -

.. code-block:: python

Expand All @@ -121,7 +121,7 @@ could instead be written as::
For the common case of a "single-shot" timer that is only performed once,
there is the :py:meth:`~pyface.timer.timer.PyfaceTimer.single_shot` class
method that creates a timer that will be called once after the specified
interval::
interval -

.. code-block:: python

Expand Down