From 3e8815b998c4785d8fb17e2f8226fe6b2b5e04a8 Mon Sep 17 00:00:00 2001 From: Xavier Petit Date: Mon, 17 Jun 2019 12:50:15 +0100 Subject: [PATCH] Rename PutStr to PrintStr --- subjects/fixthemain.en.md | 8 ++++---- subjects/fixthemain.fr.md | 8 ++++---- subjects/printstr.fr.md | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/subjects/fixthemain.en.md b/subjects/fixthemain.en.md index 158edc10..f67ed78c 100644 --- a/subjects/fixthemain.en.md +++ b/subjects/fixthemain.en.md @@ -7,7 +7,7 @@ Write and fix the folloing functions. ### Expected functions ```go -func PutStr(str string) { +func PrintStr(str string) { arrayRune := []rune(str) for _, s := range arrayRune { z01.PrintRune(s) @@ -15,18 +15,18 @@ func PutStr(str string) { } func CloseDoor(ptrDoor *Door) bool { - PutStr("Door closing...") + PrintStr("Door closing...") state = CLOSE return true } func IsDoorOpen(Door Door) { - PutStr("Door is open ?") + PrintStr("Door is open ?") return Door.state = OPEN } func IsDoorClose(ptrDoor *Door) bool { - PutStr("Door is close ?") + PrintStr("Door is close ?") } ``` diff --git a/subjects/fixthemain.fr.md b/subjects/fixthemain.fr.md index 158edc10..f67ed78c 100644 --- a/subjects/fixthemain.fr.md +++ b/subjects/fixthemain.fr.md @@ -7,7 +7,7 @@ Write and fix the folloing functions. ### Expected functions ```go -func PutStr(str string) { +func PrintStr(str string) { arrayRune := []rune(str) for _, s := range arrayRune { z01.PrintRune(s) @@ -15,18 +15,18 @@ func PutStr(str string) { } func CloseDoor(ptrDoor *Door) bool { - PutStr("Door closing...") + PrintStr("Door closing...") state = CLOSE return true } func IsDoorOpen(Door Door) { - PutStr("Door is open ?") + PrintStr("Door is open ?") return Door.state = OPEN } func IsDoorClose(ptrDoor *Door) bool { - PutStr("Door is close ?") + PrintStr("Door is close ?") } ``` diff --git a/subjects/printstr.fr.md b/subjects/printstr.fr.md index 5f02e1c1..2dbdd78b 100644 --- a/subjects/printstr.fr.md +++ b/subjects/printstr.fr.md @@ -1,4 +1,4 @@ -## putstr +## prinstr ### Instructions @@ -23,7 +23,7 @@ import piscine ".." func main() { str := "Hello World!" - piscine.Putstr(str) + piscine.PrintStr(str) } ```