Add usage examples and be more specific with the instructions as reviewed

This commit is contained in:
estlop 2022-07-01 12:31:19 +01:00 committed by Dav Hojt
parent f8b2b6aed0
commit cf26a508d3
1 changed files with 6 additions and 2 deletions

View File

@ -2,13 +2,17 @@
### Instructions
Write a program that displays all the arguments as a single string. If there are not enough arguments it should display a new line.
Write a program that displays all the arguments as a single string by simple putting one after each other. If there are not enough arguments it should display a new line.
### Usage
```console
$ go run . hello there chris | cat -e
hellotherechris$
$ go run . a b c d| cat -e
$ go run . a b c d | cat -e
abcd$
$ go run . "hello there" "how are you?"
hello therehow are you?$
$ go run . "hello there" " " | cat -e
hello there $
```