Skip to content

Commit c7228d5

Browse files
Adds some explanatory comments to the example.
1 parent 97ac7e5 commit c7228d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/shortintro.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Example::
88
def connection_made(self, transport):
99
self.transport = transport
1010
print('port opened', transport)
11-
transport.serial.rts = False
12-
transport.write(b'hello world\n')
11+
transport.serial.rts = False # You can manipulate Serial object via transport
12+
transport.write(b'Hello, World!\n') # Write serial data via transport
1313

1414
def data_received(self, data):
1515
print('data received', repr(data))

0 commit comments

Comments
 (0)