diff --git a/subjects/loafofbread/README.md b/subjects/loafofbread/README.md index 8cc12e42..ca3baa8b 100644 --- a/subjects/loafofbread/README.md +++ b/subjects/loafofbread/README.md @@ -1,8 +1,8 @@ -# loafofbread +## loafofbread ### Instructions -Write a function `LoafOfBread()` that takes a string and returns another one with words of 5 characters and skips the next character followed by newline `\n`. +Write a function `LoafOfBread()` that takes a `string` and returns another one with words of 5 characters and skips the next character followed by newline `\n`. - If there is a space in the middle of a word it should ignore it and get the next character until getting to a length of 5. - If the string is less than 5 characters return "Invalid Output\n". @@ -22,12 +22,15 @@ Here is a possible program to test your function: ```go package main -import "fmt" +import ( + "fmt" + "piscine" +) func main() { - fmt.Print(LoafOfBread("deliciousbread")) - fmt.Print(LoafOfBread("This is a loaf of bread")) - fmt.Print(LoafOfBread("loaf")) + fmt.Print(piscine.LoafOfBread("deliciousbread")) + fmt.Print(piscine.LoafOfBread("This is a loaf of bread")) + fmt.Print(piscine.LoafOfBread("loaf")) } ```