From 6f0ebbad84419de65a03a0ea6e41cbc6b49d6eb0 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 13 Aug 2024 06:23:12 +0000 Subject: basics: Fix typo on 'palindrome' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- basics/main.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'basics/main.c') diff --git a/basics/main.c b/basics/main.c index 207fee2..89d4401 100644 --- a/basics/main.c +++ b/basics/main.c @@ -45,26 +45,26 @@ void test_reverse_string() } /* - * Returns true if the given string is a palyndrome, false otherwise. + * Returns true if the given string is a palindrome, false otherwise. * * Implemented in string.S */ -bool is_palyndrome(char *str); +bool is_palindrome(char *str); -void test_is_palyndrome() +void test_is_palindrome() { - assert(is_palyndrome(NULL) == 0); - assert(is_palyndrome("") == 0); - assert(is_palyndrome("aba") == 1); - assert(is_palyndrome("aaa") == 1); - assert(is_palyndrome("This is a a si sihT") == 1); + assert(is_palindrome(NULL) == 0); + assert(is_palindrome("") == 0); + assert(is_palindrome("aba") == 1); + assert(is_palindrome("aaa") == 1); + assert(is_palindrome("This is a a si sihT") == 1); - printf("is_palyndrome:\tOK\n"); + printf("is_palindrome:\tOK\n"); } int main() { test_factorial(); test_reverse_string(); - test_is_palyndrome(); + test_is_palindrome(); } -- cgit v1.2.3