Skip to content

Commit c959047

Browse files
authored
Merge pull request #1197 from hardbyte/felixdivo-patch-bus.rst
[TINY] Fix syntax highlighting in bus.rst
2 parents eb8d92d + 89deff5 commit c959047

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)