From 8f788a38305df7ef2077c472f910f191001a95d5 Mon Sep 17 00:00:00 2001 From: Hamza elkhatri <40549481+Hamzaelkhatri@users.noreply.github.com> Date: Wed, 22 Jun 2022 16:09:44 +0100 Subject: [PATCH] Update README.md --- subjects/swapname/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subjects/swapname/README.md b/subjects/swapname/README.md index cda5870ef..ca5243e88 100644 --- a/subjects/swapname/README.md +++ b/subjects/swapname/README.md @@ -4,9 +4,9 @@ Write a program that takes two words in the first argument and swaps them. - If the number of arguments is not 2, nothing should be printed. -- If the first argument is not an alphanumeric characters, the program should print `"Error\n"`. -- Skip the spaces in the first of the two words. -- Print the result with a new line at the end (`'\n'`). +- the first argument should containe only alphabitic characters and spaces, if not, print `"Error\n"` +- Skip the spaces only in the first word of the first argument. +- - Print the result with a new line at the end (`'\n'`). ### Usage