From 599a599df9a50797c936feab1e132acef6359dc8 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 1 Aug 2021 07:34:44 +1000 Subject: [PATCH 1/2] docs: Fix a few typos There are small typos in: - codebreaker_unit_tests.py - freqFinder.py Fixes: - Should read `initialize` rather than `intialize`. - Should read `folders` rather than `folderas`. --- codebreaker_unit_tests.py | 2 +- freqFinder.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codebreaker_unit_tests.py b/codebreaker_unit_tests.py index 56a39e5..cb98638 100644 --- a/codebreaker_unit_tests.py +++ b/codebreaker_unit_tests.py @@ -17,7 +17,7 @@ # @c:\Python32\python.exe c:\Python32\Lib\site-packages\pylint\lint.py --rcfile=pylint.conf %1 %2 %3 %4 %5 %6 %7 %8 %9 # # This way I could run "run_pylint.bat foo.py" to run pylint on a source code file. -# Be sure to download the pylint.conf config file and have it in the same folderas codebreaker_unit_tests.py +# Be sure to download the pylint.conf config file and have it in the same folders codebreaker_unit_tests.py FOX_MESSAGE = "The quick brown fox jumped over the yellow lazy dog.".upper() diff --git a/freqFinder.py b/freqFinder.py index 0316b87..acc198e 100644 --- a/freqFinder.py +++ b/freqFinder.py @@ -17,7 +17,7 @@ def getLetterCount(message): # count of how many times they appear in the message parameter. letterToCount = {} for letter in LETTERS: - letterToCount[letter] = 0 # intialize each letter to 0 + letterToCount[letter] = 0 # initialize each letter to 0 for letter in message: if letter in LETTERS: From 8d949e4090e0eecc452cbd0d4908f791cedd6220 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 1 Aug 2021 07:35:43 +1000 Subject: [PATCH 2/2] Update codebreaker_unit_tests.py --- codebreaker_unit_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codebreaker_unit_tests.py b/codebreaker_unit_tests.py index cb98638..7da2f7f 100644 --- a/codebreaker_unit_tests.py +++ b/codebreaker_unit_tests.py @@ -17,7 +17,7 @@ # @c:\Python32\python.exe c:\Python32\Lib\site-packages\pylint\lint.py --rcfile=pylint.conf %1 %2 %3 %4 %5 %6 %7 %8 %9 # # This way I could run "run_pylint.bat foo.py" to run pylint on a source code file. -# Be sure to download the pylint.conf config file and have it in the same folders codebreaker_unit_tests.py +# Be sure to download the pylint.conf config file and have it in the same folder as codebreaker_unit_tests.py FOX_MESSAGE = "The quick brown fox jumped over the yellow lazy dog.".upper()