[Docs] Use pascal casing for example cog in cog creation guide (#4930)

This commit is contained in:
Kreusada 2021-04-03 01:56:10 +01:00 committed by GitHub
parent 7c853db9f4
commit 01637a9798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ In that file, place the following code:
from redbot.core import commands from redbot.core import commands
class Mycog(commands.Cog): class MyCog(commands.Cog):
"""My custom cog""" """My custom cog"""
@commands.command() @commands.command()
@ -96,11 +96,11 @@ Open :code:`__init__.py`. In that file, place the following:
.. code-block:: python .. code-block:: python
from .mycog import Mycog from .mycog import MyCog
def setup(bot): def setup(bot):
bot.add_cog(Mycog()) bot.add_cog(MyCog())
Make sure that both files are saved. Make sure that both files are saved.