Skip to content

Commit a251e9f

Browse files
authored
Merge pull request TheAlgorithms#221 from cclauss/patch-4
chunk() --> chunker() to resolve an undefined name
2 parents 14d9e72 + aed9cb1 commit a251e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ciphers/playfair_cipher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def decode(ciphertext, key):
8585
plaintext = ""
8686

8787
# https://en.wikipedia.org/wiki/Playfair_cipher#Description
88-
for char1, char2 in chunk(ciphertext, 2):
88+
for char1, char2 in chunker(ciphertext, 2):
8989
row1, col1 = divmod(table.index(char1), 5)
9090
row2, col2 = divmod(table.index(char2), 5)
9191

0 commit comments

Comments
 (0)