From c28c3f444060267b28d3e4c39f5700aa67ac0467 Mon Sep 17 00:00:00 2001 From: LightSage Date: Tue, 15 Mar 2022 06:25:35 -0500 Subject: [PATCH] Keep comments consistent with other before/after comments --- docs/migrating.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/migrating.rst b/docs/migrating.rst index e73101baa..e1a105f00 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -851,12 +851,11 @@ Therefore, ``Embed.Empty`` has been removed in favour of ``None``. .. code-block:: python - # Before - + # before embed = discord.Embed(title='foo') embed.title = discord.Embed.Empty - # After + # after embed = discord.Embed(title='foo') embed.title = None @@ -1186,7 +1185,7 @@ Quick example of an extension setup function: def setup(bot): bot.add_cog(MyCog(bot)) - #after + # after async def setup(bot): await bot.add_cog(MyCog(bot)) @@ -1194,10 +1193,10 @@ Quick example of loading an extension: .. code:: python - #before + # before bot.load_extension('my_extension') - #after using setup_hook + # after using setup_hook class MyBot(commands.Bot): async def setup_hook(self): await self.load_extension('my_extension')