Skip to content

Commit 71ba9dd

Browse files
committed
Comment about bus.shutdown call in README.rst
1 parent 42549c8 commit 71ba9dd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ Example usage
8989
# import the library
9090
import can
9191
92-
# create a bus instance
92+
# create a bus instance using 'with' statement,
93+
# this will cause bus.shutdown() to be called on the block exit;
9394
# many other interfaces are supported as well (see documentation)
9495
with can.Bus(interface='socketcan',
9596
channel='vcan0',

0 commit comments

Comments
 (0)