diff options
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/classes.rst | 2 | ||||
-rw-r--r-- | Doc/tutorial/introduction.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 4e166d1031..1ba6bb0ee6 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -580,7 +580,7 @@ Private Variables ================= "Private" instance variables that cannot be accessed except from inside an -object, don't exist in Python. However, there is a convention that is followed +object don't exist in Python. However, there is a convention that is followed by most Python code: a name prefixed with an underscore (e.g. ``_spam``) should be treated as a non-public part of the API (whether it is a function, a method or a data member). It should be considered an implementation detail and subject diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 97065afd13..37b79109b1 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -208,7 +208,7 @@ next line is a logical continuation of the line:: print(hello) -Note that newlines still need to be embedded in the string using ``\n``; the +Note that newlines still need to be embedded in the string using ``\n`` -- the newline following the trailing backslash is discarded. This example would print the following: |