From 80a9d11c67a248429be00477f8d6b478cfd0a350 Mon Sep 17 00:00:00 2001 From: Tiago Collot Date: Tue, 8 Nov 2022 11:15:58 +0000 Subject: [PATCH] docs(wordflip): instructions upgrade --- subjects/wordflip/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/wordflip/README.md b/subjects/wordflip/README.md index 5d873415..e01b53ea 100644 --- a/subjects/wordflip/README.md +++ b/subjects/wordflip/README.md @@ -2,11 +2,11 @@ ### Instructions -Write a function `WordFlip()` that receives a `string` and returns it with the first and last words flipped. +Write a function `WordFlip()` that receives a `string` and returns it in reverse order. - Prints the Output followed by newline `\n`. - If the string is empty, return `Invalid Output`. -- Ignore spaces if it's more then one space in between words and all spaces in the edge of the words or sentences. +- Ignore spaces if there are more than one space in between words and ignore all spaces at the edge of the `string`. ### Expected function