From 6883b5e7a4df408af7255bf5443eed3fbc846a25 Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Sat, 30 Jul 2022 02:38:24 +0100 Subject: [PATCH] PrinAndMiss --- subjects/printandmiss/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/subjects/printandmiss/README.md b/subjects/printandmiss/README.md index 8f0011da..1b96f664 100644 --- a/subjects/printandmiss/README.md +++ b/subjects/printandmiss/README.md @@ -27,12 +27,12 @@ import ( ) func main() { - fmt.PrintAndMiss("123456789", 3) - fmt.PrintAndMiss("abcdefghijklmnopqrstuvwyz", 3) - fmt.PrintAndMiss("", 3) - fmt.PrintAndMiss("hello you all ! ", 2) - fmt.PrintAndMiss("what is your name?", 0) - fmt.PrintAndMiss("go Exercise Print and Miss", -5) + fmt.Print(PrintAndMiss("123456789", 3)) + fmt.Print(PrintAndMiss("abcdefghijklmnopqrstuvwyz", 3)) + fmt.Print(PrintAndMiss("", 3)) + fmt.Print(PrintAndMiss("hello you all ! ", 0)) + fmt.Print(PrintAndMiss("what is your name?", 0)) + fmt.Print(PrintAndMiss("go Exercise Print and Miss", -5)) } ``` @@ -43,7 +43,7 @@ $ go run . | cat -e 123789$ abcghimnostuz$ Invalid Output$ -heo u ll $ +hello you all ! $ what is your name?$ Invalid Output$ ``` \ No newline at end of file