diff --git a/text-counter-console-app/Program.cs b/text-counter-console-app/Program.cs index 2d12a82..bf8d479 100644 --- a/text-counter-console-app/Program.cs +++ b/text-counter-console-app/Program.cs @@ -5,7 +5,7 @@ while (true) { string textInput = Console.ReadLine(); //read text input in each line - if (textInput == null | textInput == "") //if Ctrl+D is pressed or text input is empty + if (textInput == null || textInput == "") //if Ctrl+D is pressed or text input is empty { break; //end while loop }