diff --git a/13/exercises/06/README.md b/13/exercises/06/README.md index e035719f..6f21b81a 100644 --- a/13/exercises/06/README.md +++ b/13/exercises/06/README.md @@ -9,7 +9,7 @@ clarity. ```c void censor(char *str) { char *c = str; - while (c+2 != '\0') { + while (*(c+2) != '\0') { if (*c == 'f' && *(c+1) == 'o' && *(c+2) == 'o') *c = *(c+1) = *(c+2) = 'x'; c++;