From 7902cad62debbeeab9370f2e2fecae0e7fe71a00 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 14 Jun 2021 14:35:42 +0100 Subject: [PATCH] 1) Grammatical improvement of searchreplace. 2) Added an extra example for clarification purposes. --- subjects/searchreplace/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subjects/searchreplace/README.md b/subjects/searchreplace/README.md index 6a3ff8aa..52adfef5 100644 --- a/subjects/searchreplace/README.md +++ b/subjects/searchreplace/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a program that takes 3 arguments, the first argument is a `string` in which to replace a letter (the 2nd argument) by another one (the 3rd argument). +Write a program that takes 3 arguments, the first argument is a `string` in which a letter (the 2nd argument) will be replaced by another one (the 3rd argument). - If the number of arguments is different from 3, the program displays nothing. @@ -13,6 +13,8 @@ Write a program that takes 3 arguments, the first argument is a `string` in whic ```console $ go run . "hella there" "a" "o" hello there +$ go run . "hallo thara" "a" "e" +hello there $ go run . "abcd" "z" "l" abcd $ go run . "something" "a" "o" "b" "c"