Skip to content

Commit a5a6712

Browse files
jdeniaumiguelgrinberg
authored andcommitted
fix typo with quotes in doc (miguelgrinberg#238)
1 parent a8b13fc commit a5a6712

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/client.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ functions must be defined using the ``on`` decorator::
4545

4646
@sio.on('connect')
4747
def on_connect():
48-
print('I'm connected!')
48+
print('I\'m connected!')
4949

5050
@sio.on('message')
5151
def on_message(data):
@@ -57,7 +57,7 @@ functions must be defined using the ``on`` decorator::
5757

5858
@sio.on('disconnect')
5959
def on_disconnect():
60-
print('I'm disconnected!')
60+
print('I\'m disconnected!')
6161

6262
For the ``asyncio`` server, event handlers can be regular functions as above,
6363
or can also be coroutines::
@@ -162,7 +162,7 @@ added to the ``on`` decorator::
162162

163163
@sio.on('connect', namespace='/chat')
164164
def on_connect():
165-
print('I'm connected to the /chat namespace!')
165+
print('I\'m connected to the /chat namespace!')
166166

167167
Likewise, the client can emit an event to the server on a namespace by
168168
providing its in the ``emit()`` call::

0 commit comments

Comments
 (0)