Skip to content

Commit 89deff5

Browse files
authored
Fix syntax highlighting in bus.rst
1 parent e7a2b04 commit 89deff5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/bus.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ This thread safe version of the :class:`~can.BusABC` class can be used by multip
8080
Sending and receiving is locked separately to avoid unnecessary delays.
8181
Conflicting calls are executed by blocking until the bus is accessible.
8282

83-
It can be used exactly like the normal :class:`~can.BusABC`::
83+
It can be used exactly like the normal :class:`~can.BusABC`:
84+
85+
.. code-block:: python
8486
8587
# 'socketcan' is only an example interface, it works with all the others too
8688
my_bus = can.ThreadSafeBus(interface='socketcan', channel='vcan0')

0 commit comments

Comments
 (0)