Skip to content

Commit b2d6174

Browse files
isidenticalgvanrossum
authored andcommitted
Use "age" instead of "x" for consistency within one example (#5397)
1 parent bc7a612 commit b2d6174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/cheat_sheet_py3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ we use it in most examples.
2525
.. code-block:: python
2626
2727
# This is how you declare the type of a variable type in Python 3.6
28-
x: int = 1
28+
age: int = 1
2929
3030
# In Python 3.5 and earlier you can use a type comment instead
3131
# (equivalent to the previous definition)
32-
x = 1 # type: int
32+
age = 1 # type: int
3333
3434
# You don't need to initialize a variable to annotate it
3535
a: int # Ok (no value at runtime until assigned)

0 commit comments

Comments
 (0)