summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Palard <julien@palard.fr>2019-07-08 23:06:32 +0200
committerGitHub <noreply@github.com>2019-07-08 23:06:32 +0200
commit2da622ff77a763327895656779370b80a833d95c (patch)
treecac5f9d84f4376302374c1b83aa117ec5e0598ac /Doc/tutorial
parentbpo-37421: test_concurrent_futures stops ForkServer (GH-14643) (diff)
downloadcpython-2da622ff77a763327895656779370b80a833d95c.tar.gz
cpython-2da622ff77a763327895656779370b80a833d95c.tar.bz2
cpython-2da622ff77a763327895656779370b80a833d95c.zip
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
Initial report by Michael Blankenship on docs@
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/controlflow.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 79111f8518d..92c042e26df 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -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).