- Fixed compilation error
This commit is contained in:
Tristan B. Velloza Kildaire 2023-06-17 22:49:00 +02:00
parent 737833dfd7
commit 7daf06ecaa
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ public final class Rot13 : Mod
{
import std.algorithm : map;
import std.conv : to;
return to!(string)(toBeSecretified.map!((ch) {
return to!(string)(text.map!((ch) {
if (ch >= 'a' && ch <= 'z')
ch = (ch - 'a' + 13) % 26 + 'a';
if (ch >= 'A' && ch <= 'Z')