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) } ```