commit | 9e20574a9a6cd369b1ed488112fb3c2941ec72e9 | [log] [tgz] |
---|---|---|
author | Chris Liechti <cliechti@gmx.net> | Mon Oct 31 22:37:13 2016 +0100 |
committer | Chris Liechti <cliechti@gmx.net> | Mon Oct 31 22:37:13 2016 +0100 |
tree | 5096943015176ef2ccd91b037805b74bbb42091c | |
parent | 141ca00b69ee94d0f501e3c431225144a10b9673 [diff] [blame] |
docs: fix example, fixes #173
diff --git a/documentation/shortintro.rst b/documentation/shortintro.rst index 8f33a68..02385d9 100644 --- a/documentation/shortintro.rst +++ b/documentation/shortintro.rst
@@ -44,9 +44,9 @@ >>> ser.is_open False -Also supported with context manager:: +Also supported with :ref:`context manager <context-manager>`:: - serial.Serial() as ser: + with serial.Serial() as ser: ser.baudrate = 19200 ser.port = 'COM1' ser.open()