Skip to content

Commit c635460

Browse files
meatball133BethanyG
authored andcommitted
fix
1 parent 3c2f97b commit c635460

File tree

1 file changed

+1
-1
lines changed
  • exercises/practice/rotational-cipher/.approaches/ascii-values

1 file changed

+1
-1
lines changed

exercises/practice/rotational-cipher/.approaches/ascii-values/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Finally, the result is [modulo (%)][modulo] 26 (_to put the value within the 0-2
4545
This is because we want to know which letter of the alphabet the number will become.
4646
And if the new number is over 26 we want to make sure that it "wraps around" to remain in the range of 0-26.
4747
To properly use modulo for a range we have to make sure that it starts at zero, so we subtract 65.
48-
To get back to a letter in the asciii range we add 65 and use the [`chr`][chr] method to convert the value to a letter.
48+
To get back to a letter in the ascii range we add 65 and use the [`chr`][chr] method to convert the value to a letter.
4949

5050
The process is the same for a lowercase letter, but with 97 subtracted to put the letter in the lowercase ascii range of 97 - 123.
5151

0 commit comments

Comments
 (0)