Skip to content

Commit 5f95d6f

Browse files
testwillcclauss
andauthored
fix: function name typo (TheAlgorithms#11319)
* fix: function name typo Signed-off-by: guoguangwu <guoguangwug@gmail.com> * lfu_cache.py: Use f-strings * rsa_cipher.py: Use f-strings --------- Signed-off-by: guoguangwu <guoguangwug@gmail.com> Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent fd27953 commit 5f95d6f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ciphers/rsa_cipher.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ def read_from_file_and_decrypt(message_filename: str, key_filename: str) -> str:
102102
sys.exit(
103103
f"ERROR: Block size is {block_size * 8} bits and key size is {key_size} "
104104
"bits. The RSA cipher requires the block size to be equal to or greater "
105-
"than the key size. Did you specify the correct key file and encrypted "
106-
"file?"
105+
"than the key size. Were the correct key file and encrypted file specified?"
107106
)
108107

109108
encrypted_blocks = []

machine_learning/astar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, world_size=(5, 5)):
5757
def show(self):
5858
print(self.w)
5959

60-
def get_neigbours(self, cell):
60+
def get_neighbours(self, cell):
6161
"""
6262
Return the neighbours of cell
6363
"""
@@ -110,7 +110,7 @@ def astar(world, start, goal):
110110
_closed.append(_open.pop(min_f))
111111
if current == goal:
112112
break
113-
for n in world.get_neigbours(current):
113+
for n in world.get_neighbours(current):
114114
for c in _closed:
115115
if c == n:
116116
continue

0 commit comments

Comments
 (0)