diff --git a/sources/tech/20220510 How to (safely) read user input with the getline function.md b/sources/tech/20220510 How to (safely) read user input with the getline function.md index 4d49ccbd93..46f51fe62c 100644 --- a/sources/tech/20220510 How to (safely) read user input with the getline function.md +++ b/sources/tech/20220510 How to (safely) read user input with the getline function.md @@ -26,10 +26,9 @@ As a simple example, we might ask the user a question and read the result into a #include #include -int -main() +int main() { -  char city[10];                       // Such as "Chicago" +  char city[10]; // Such as "Chicago"   // this is bad .. please don't use gets