mirror of https://github.com/01-edu/public.git
Add usage examples and be more specific with the instructions as reviewed
This commit is contained in:
parent
f8b2b6aed0
commit
cf26a508d3
|
@ -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 $
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue