docs/library/machine.Timer.rst: Document 'id' as positional-only arg.

Signed-off-by: Michael Buesch <m@bues.ch>
pull/8055/head
Michael Buesch 2020-08-31 17:12:38 +02:00 zatwierdzone przez Damien George
rodzic d94ac4333f
commit e7900351bf
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -27,11 +27,12 @@ instead of this class.
Constructors
------------
.. class:: Timer(id, ...)
.. class:: Timer(id, /, ...)
Construct a new timer object of the given id. Id of -1 constructs a
Construct a new timer object of the given ``id``. ``id`` of -1 constructs a
virtual timer (if supported by a board).
``id`` shall not be passed as a keyword argument.
See ``init`` for parameters of initialisation.
Methods