From 258dccd947a25fc940976f05896e1b5492780eb1 Mon Sep 17 00:00:00 2001 From: miguel Date: Thu, 19 Sep 2024 09:48:17 +0100 Subject: [PATCH] fix(go-reloaded) bad example --- subjects/go-reloaded/README.md | 5 +++-- subjects/go-reloaded/audit/README.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/subjects/go-reloaded/README.md b/subjects/go-reloaded/README.md index 58c900f9a..552a99be4 100644 --- a/subjects/go-reloaded/README.md +++ b/subjects/go-reloaded/README.md @@ -31,6 +31,7 @@ The tool you are about to build will receive as arguments the name of a file con - The punctuation mark `'` will always be found with another instance of it and they should be placed to the right and left of the word in the middle of them, without any spaces. (Ex: "I am exactly how they describe me: ' awesome '" -> "I am exactly how they describe me: 'awesome'") - If there are more than one word between the two `' '` marks, the program should place the marks next to the corresponding words (Ex: "As Elton John said: ' I am the most well-known homosexual in the world '" -> "As Elton John said: 'I am the most well-known homosexual in the world'") - Every instance of `a` should be turned into `an` if the next word begins with a vowel (`a`, `e`, `i`, `o`, `u`) or a `h`. (Ex: "There it was. A amazing rock!" -> "There it was. An amazing rock!"). + ### Allowed packages - [Standard Go](https://golang.org/pkg/) packages are allowed. @@ -54,10 +55,10 @@ $ go run . sample.txt result.txt $ cat result.txt There is no greater agony than bearing an untold story inside you. $ cat sample.txt -Punctuation tests are ... kinda boring ,don't you think !? +Punctuation tests are ... kinda boring ,what do you think ? $ go run . sample.txt result.txt $ cat result.txt -Punctuation tests are... kinda boring, don't you think!? +Punctuation tests are... kinda boring, what do you think? ``` This project will help you learn about : diff --git a/subjects/go-reloaded/audit/README.md b/subjects/go-reloaded/audit/README.md index 421e86980..a855792bb 100644 --- a/subjects/go-reloaded/audit/README.md +++ b/subjects/go-reloaded/audit/README.md @@ -1,6 +1,6 @@ #### Functional -###### Has the requirement for the allowed packages been respected? (Reminder for this project: (only [standard packages](https://golang.org/pkg/)) +###### Has the requirement for the allowed packages been respected? (Reminder for this project: (only [standard packages](https://golang.org/pkg/))) ##### In a file called `sample.txt`, place the following text: `If I make you BREAKFAST IN BED (low, 3) just say thank you instead of: how (cap) did you get in my house (up, 2) ?`. Now run the student program with the arguments: `sample.txt result.txt`.