From ceee1b35a83146fac77ee5f7a0c9dc5f480f2b45 Mon Sep 17 00:00:00 2001 From: lee Date: Wed, 19 Jun 2019 14:39:05 +0100 Subject: [PATCH] fix fixthemain.en.md --- subjects/fixthemain.en.md | 26 ++++---------------------- subjects/fixthemain.fr.md | 26 ++++---------------------- 2 files changed, 8 insertions(+), 44 deletions(-) diff --git a/subjects/fixthemain.en.md b/subjects/fixthemain.en.md index f67ed78c4..bcef95a79 100644 --- a/subjects/fixthemain.en.md +++ b/subjects/fixthemain.en.md @@ -2,11 +2,13 @@ ### Instructions -Write and fix the folloing functions. +Write and fix the following program. ### Expected functions ```go +package piscine + func PrintStr(str string) { arrayRune := []rune(str) for _, s := range arrayRune { @@ -28,14 +30,6 @@ func IsDoorOpen(Door Door) { func IsDoorClose(ptrDoor *Door) bool { PrintStr("Door is close ?") } -``` - -### Usage - -Here is a possible [program](TODO-LINK) to test your function : - -```go -package main func main() { door := &Door{} @@ -51,16 +45,4 @@ func main() { CloseDoor(door) } } -``` - -And its output : - -```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test -Door Opening... -Door is close ? -Door is open ? -Door closing... -student@ubuntu:~/piscine/test$ -``` +``` \ No newline at end of file diff --git a/subjects/fixthemain.fr.md b/subjects/fixthemain.fr.md index f67ed78c4..bcef95a79 100644 --- a/subjects/fixthemain.fr.md +++ b/subjects/fixthemain.fr.md @@ -2,11 +2,13 @@ ### Instructions -Write and fix the folloing functions. +Write and fix the following program. ### Expected functions ```go +package piscine + func PrintStr(str string) { arrayRune := []rune(str) for _, s := range arrayRune { @@ -28,14 +30,6 @@ func IsDoorOpen(Door Door) { func IsDoorClose(ptrDoor *Door) bool { PrintStr("Door is close ?") } -``` - -### Usage - -Here is a possible [program](TODO-LINK) to test your function : - -```go -package main func main() { door := &Door{} @@ -51,16 +45,4 @@ func main() { CloseDoor(door) } } -``` - -And its output : - -```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test -Door Opening... -Door is close ? -Door is open ? -Door closing... -student@ubuntu:~/piscine/test$ -``` +``` \ No newline at end of file