Skip to content

Commit

Permalink
docs(printif): update subject to be inline with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nprimo committed Jul 29, 2024
1 parent e5633da commit d70fd80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subjects/printif/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Instructions

Write a function that takes a `string` as an argument and returns the letter `G` followed by a newline `\n` if the argument length is more than 3, otherwise returns `Invalid Input` followed by a newline `\n`.
Write a function that takes a `string` as an argument and returns the letter `G` followed by a newline `\n` if the argument length is more or equal than 3, otherwise returns `Invalid Input` followed by a newline `\n`.

- If it's an empty string return `G` followed by a newline `\n`.

Expand Down Expand Up @@ -39,7 +39,7 @@ And its output:
```console
$ go run . | cat -e
G$
Invalid Input$
G$
G$
Invalid Input$
```

0 comments on commit d70fd80

Please sign in to comment.