From 490176cc08355ed91e5257d38f59abb4c0e975f2 Mon Sep 17 00:00:00 2001 From: Tiago Collot Date: Thu, 22 Sep 2022 17:18:00 +0100 Subject: [PATCH] fix(jumpover): add missing import piscine and add second # to the title --- subjects/jumpover/README.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/subjects/jumpover/README.md b/subjects/jumpover/README.md index df1b68918..969b23bd1 100644 --- a/subjects/jumpover/README.md +++ b/subjects/jumpover/README.md @@ -1,17 +1,18 @@ -# jumpover +## jumpover ### Instructions -Write a function `jumpover` that takes a string and returns another string with every third character. +Write a function `JumpOver()` that takes a `string` and returns another `string` with every third character. - Prints the output followed by newline `\n`. -- If the string is empty, return newline `\n`. +- If the `string` is empty, return newline `\n`. - If there is no third character, return newline `\n`. ### Expected function ```go func JumpOver(str string) string { + } ``` @@ -22,13 +23,16 @@ Here is a possible program to test your function: ```go package main -import "fmt" +import ( + "fmt" + "piscine" +) func main() { - fmt.Print(JumpOver("1010101010")) - fmt.Print(JumpOver("")) - fmt.Print(JumpOver("t w e l v e")) - fmt.Print(JumpOver("12")) + fmt.Print(piscine.JumpOver("1010101010")) + fmt.Print(piscine.JumpOver("")) + fmt.Print(piscine.JumpOver("t w e l v e")) + fmt.Print(piscine.JumpOver("12")) } ```