Skip to content

Commit

Permalink
Fix spelling of Caesar
Browse files Browse the repository at this point in the history
I know that this isn't the most important thing in the world, but as
a Latin teacher, it is (literally) my job to notice this sort of thing.

Thanks for pylint.
  • Loading branch information
telemachus authored and brycepg committed Jun 25, 2020
1 parent a735857 commit 3d85973
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Your First Pylint'ing
---------------------

We'll use a basic Python script as fodder for our tutorial.
The starting code we will use is called simplecaeser.py and is here in its
The starting code we will use is called simplecaesar.py and is here in its
entirety:

.. sourcecode:: python
Expand Down Expand Up @@ -136,7 +136,7 @@ If we run this:

.. sourcecode:: console

robertk01 Desktop$ pylint simplecaeser.py
robertk01 Desktop$ pylint simplecaesar.py
************* Module simplecaesar
simplecaesar.py:16:19: C0326: Exactly one space required around assignment
encoded=encoded + letters[x]
Expand Down Expand Up @@ -202,7 +202,7 @@ Here is the updated code:

1 #!/usr/bin/env python3
2 """This script prompts a user to enter a message to encode or decode
3 using a classic Caeser shift substitution (3 letter shift)"""
3 using a classic Caesar shift substitution (3 letter shift)"""
4
5 import string
6
Expand Down Expand Up @@ -232,7 +232,7 @@ Here is what happens when we run it:

.. sourcecode:: console

robertk01 Desktop$ pylint simplecaeser.py
robertk01 Desktop$ pylint simplecaesar.py
************* Module simplecaesar
simplecaesar.py:7:0: C0103: Constant name "shift" doesn't conform to UPPER_CASE naming style (invalid-name)
simplecaesar.py:8:0: C0103: Constant name "choice" doesn't conform to UPPER_CASE naming style (invalid-name)
Expand Down

0 comments on commit 3d85973

Please sign in to comment.