From 2697a6651299822eea0a65236061428c941a472f Mon Sep 17 00:00:00 2001
From: "tanguy.cavagna" <tanguy.cavagna@etu.hesge.ch>
Date: Fri, 13 May 2022 15:59:57 +0200
Subject: [PATCH] Typo

---
 wordle/wordle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wordle/wordle.c b/wordle/wordle.c
index 192f6c8..83be792 100644
--- a/wordle/wordle.c
+++ b/wordle/wordle.c
@@ -141,7 +141,7 @@ int *validate_guess(char answer[WORD_LENGHT], char try[WORD_LENGHT]) {
         char *addr;
         if ((addr = strchr(answer, try[i])) != NULL) {
             validation[i] = LETTER_WRONG_PLACE;
-            cpy[(int)(addr - answer)] = ' '; // Get the index of the found char
+            cpy[(int)(addr - answer)] = ' '; // Get the index of the found char and replace with space
             continue;
         }
     }
-- 
GitLab