From 8d11216438d5b89f638cf0bba9905f5ff07e54b0 Mon Sep 17 00:00:00 2001 From: jrosendo Date: Tue, 15 Nov 2022 15:34:23 +0000 Subject: [PATCH] docs(reversesecondhalf): made subject more clear - print vs return solved --- subjects/reversesecondhalf/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/reversesecondhalf/README.md b/subjects/reversesecondhalf/README.md index d34577d2..aa19001e 100644 --- a/subjects/reversesecondhalf/README.md +++ b/subjects/reversesecondhalf/README.md @@ -1,9 +1,9 @@ ## reversesecondhalf ### Instructions -Write a function that takes a `string` as an argument and prints the second half reversed. If the length of the `string` is odd, round it up. +Write a function that takes a `string` as an argument and returns the second half reversed. If the length of the `string` is odd, round it up. -- Print the second half reversed followed by a newline `\n`. +- Return the second half reversed followed by a newline `\n`. - If the `string` is empty, return `Invalid Output`. - If the `string` length equals one, return it, followed by a newline `\n`.