]> granicus.if.org Git - python/commitdiff
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
authorJulien Palard <julien@palard.fr>
Mon, 8 Jul 2019 21:06:32 +0000 (23:06 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jul 2019 21:06:32 +0000 (23:06 +0200)
Initial report by Michael Blankenship on docs@

Doc/tutorial/controlflow.rst

index 79111f8518d9bb45aace965aeb3c42a20ac5ac32..92c042e26dfbf9f3704157dfbca17209e2375cf9 100644 (file)
@@ -920,7 +920,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).