From 57ab470299e1dff93bd1e40434acaa4b33dc896c Mon Sep 17 00:00:00 2001 From: Tiago Collot Date: Thu, 22 Sep 2022 17:29:11 +0100 Subject: [PATCH] fix(loafofbread): add missing import piscine and add second # to the title --- subjects/loafofbread/README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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")) } ```