Skip to content

Commit

Permalink
fix: function name typo (TheAlgorithms#11319)
Browse files Browse the repository at this point in the history
* fix: function name typo

Signed-off-by: guoguangwu <[email protected]>

* lfu_cache.py: Use f-strings

* rsa_cipher.py: Use f-strings

---------

Signed-off-by: guoguangwu <[email protected]>
Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
testwill and cclauss authored Mar 12, 2024
1 parent fd27953 commit 5f95d6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ciphers/rsa_cipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ def read_from_file_and_decrypt(message_filename: str, key_filename: str) -> str:
sys.exit(
f"ERROR: Block size is {block_size * 8} bits and key size is {key_size} "
"bits. The RSA cipher requires the block size to be equal to or greater "
"than the key size. Did you specify the correct key file and encrypted "
"file?"
"than the key size. Were the correct key file and encrypted file specified?"
)

encrypted_blocks = []
Expand Down
4 changes: 2 additions & 2 deletions machine_learning/astar.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self, world_size=(5, 5)):
def show(self):
print(self.w)

def get_neigbours(self, cell):
def get_neighbours(self, cell):
"""
Return the neighbours of cell
"""
Expand Down Expand Up @@ -110,7 +110,7 @@ def astar(world, start, goal):
_closed.append(_open.pop(min_f))
if current == goal:
break
for n in world.get_neigbours(current):
for n in world.get_neighbours(current):
for c in _closed:
if c == n:
continue
Expand Down

0 comments on commit 5f95d6f

Please sign in to comment.