From 20b24a334adf72fa7ae203bbfd5bd119bdeb9760 Mon Sep 17 00:00:00 2001 From: Hamza elkhatri <40549481+Hamzaelkhatri@users.noreply.github.com> Date: Mon, 27 Jun 2022 12:48:49 +0100 Subject: [PATCH] fix : delete `!` in usage part and rewrite the description --- subjects/swapargs/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/subjects/swapargs/README.md b/subjects/swapargs/README.md index 4feb3ea8..dff91368 100644 --- a/subjects/swapargs/README.md +++ b/subjects/swapargs/README.md @@ -1,10 +1,11 @@ ## swap-args ### Instructions -Write a program that takes two arguments and swaps them -- If the arguments are not 2 print (`'\n'`). -- Separate the arguments with (`' '`) -- Print (`'\n'`) at the end of the output. + +Write a program that takes two arguments and swaps them. +- If the number of arguments is different from 2, print (`'\n'`). +- The arguments must be separated by a withe space. +- Print (`'\n'`) at the end of the program. ### Usage @@ -14,5 +15,5 @@ $ $ go run . 1 2 | cat -e 2 1$ $ go run . "World" "Hello" | cat -e -Hello! World$ +Hello World$ ```