]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Jul 2019 21:13:59 +0000 (14:13 -0700)
committerGitHub <noreply@github.com>
Mon, 8 Jul 2019 21:13:59 +0000 (14:13 -0700)
Initial report by Michael Blankenship on docs@
(cherry picked from commit 2da622ff77a763327895656779370b80a833d95c)

Co-authored-by: Julien Palard <julien@palard.fr>
Doc/tutorial/controlflow.rst

index c3ce1205e52e41767b2bd1c3a038beb61ddaef59..482a34399c7b7ef497a2b6851c9bba6eb8c7530d 100644 (file)
@@ -744,7 +744,7 @@ extracted for you:
   bracketing constructs: ``a = f(1, 2) + g(3, 4)``.
 
 * Name your classes and functions consistently; the convention is to use
-  ``CamelCase`` for classes and ``lower_case_with_underscores`` for functions
+  ``UpperCamelCase`` for classes and ``lowercase_with_underscores`` for functions
   and methods.  Always use ``self`` as the name for the first method argument
   (see :ref:`tut-firstclasses` for more on classes and methods).