Skip to content

Commit 4bdc0c5

Browse files
committed
Fix docs: broken codeblock examples
1 parent a46ca6a commit 4bdc0c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

coc/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ def on_token_reset(token):
156156
157157
.. code-block:: python3
158158
159-
@client.event()
160-
async def on_token_reset(token):
161-
print('My new token is {}'.format(token))
159+
@client.event()
160+
async def on_token_reset(token):
161+
print('My new token is {}'.format(token))
162162
163163
:param new_token: :class:`str` The new token
164164
"""
@@ -176,9 +176,9 @@ def event(self, fctn):
176176
177177
.. code-block:: python3
178178
179-
@client.event()
180-
async def on_token_reset(token):
181-
print('My new token is {}'.format(token))
179+
@client.event()
180+
async def on_token_reset(token):
181+
print('My new token is {}'.format(token))
182182
"""
183183
setattr(self, fctn.__name__, fctn)
184184
log.info('Successfully registered %s event', fctn.__name__)

0 commit comments

Comments
 (0)