From bc9e8596f1c758e285879e727e281796af7b9f10 Mon Sep 17 00:00:00 2001 From: Stan Date: Tue, 7 Nov 2023 08:34:02 +0100 Subject: [PATCH] Update rot-13.cs The code did not work as 'message' did not exist. --- Task/Rot-13/C-sharp/rot-13.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Task/Rot-13/C-sharp/rot-13.cs b/Task/Rot-13/C-sharp/rot-13.cs index 1e8770663f..c7ccc85ced 100644 --- a/Task/Rot-13/C-sharp/rot-13.cs +++ b/Task/Rot-13/C-sharp/rot-13.cs @@ -14,8 +14,7 @@ class Program { }; } - static string Rot13(string s) - => new string(message.Select(c => shift(c)).ToArray()); + static string Rot13(string s) => new string(s.Select(c => shift(c)).ToArray()); static void Main(string[] args) {