From b11261aa0f5f2f6267c37b73c158dc907eb164bc Mon Sep 17 00:00:00 2001 From: Tiago Collot Date: Tue, 8 Nov 2022 12:00:26 +0000 Subject: [PATCH] docs(printandmiss): fix instructions --- subjects/printandmiss/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/printandmiss/README.md b/subjects/printandmiss/README.md index d99dfaab..711510c3 100644 --- a/subjects/printandmiss/README.md +++ b/subjects/printandmiss/README.md @@ -4,8 +4,8 @@ Write a function called `PrintAndMiss()` that takes a `string` and an `int` as an argument. The function should move through the `string` in sets determined by the `int`, printing the first set, omitting the second, printing the third, and so on, in a 'print' and 'miss' fashion until the end of the `string` is reached. Return a `string` containing the printed characters. -- If the `string` is empty return `Invalid Output` followed by newline `\n`. -- If the `int` is `0` or it's negative return the `string` followed by a newline `\n`. +- If the `string` is empty or the `int` is negative return `Invalid Output` followed by newline `\n`. +- If the `int` is `0` return the `string` followed by a newline `\n`. ### Expected function