From a5adc906b1fa07a2f3b478d2efdf8c2307c1637d Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Mon, 17 Jun 2019 19:13:53 +0100 Subject: [PATCH] update et fix de boolean --- subjects/boolean.en.md | 9 +++++++-- subjects/boolean.fr.md | 21 +++++++++++++-------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/subjects/boolean.en.md b/subjects/boolean.en.md index ff2a3e48..eab52ae0 100644 --- a/subjects/boolean.en.md +++ b/subjects/boolean.en.md @@ -2,11 +2,16 @@ ### Instructions -Create a `.go` file and copy the code below into that file -and add the code necessary so the program works. +Create a `.go` file. + +- The code below has to be copied in that file. + +- The necessary changes have to be applied so that the program works. - The program must be submitted inside a folder with the name `boolean`. +### Code to be copied + ```go func printStr(str string) { arrayStr := []rune(str) diff --git a/subjects/boolean.fr.md b/subjects/boolean.fr.md index 2c23b376..3fc00c7a 100644 --- a/subjects/boolean.fr.md +++ b/subjects/boolean.fr.md @@ -2,9 +2,16 @@ ### Instructions -Create a `.go` file and copy the code below into our file +Créer un fichier `.go`. -- The main task is to return a working program. +- Le code ci-dessous doit être copié dans ce fichier. + +- Les changements nécéssaires doivent être appliquer et the code below into that file + and do the necessary changes so that the program works. + +- Le programme doit être rendu dans un dossier nommé `boolean`. + +### Code à copier ```go func printStr(str string) { @@ -33,14 +40,12 @@ func main() { } ``` -### Expected output +### Usage ```console +student@ubuntu:~/student/boolean$ go build +student@ubuntu:~/student/boolean$ ./boolean "not" "odd" I have an even number of arguments -``` - -### Or - -```console +student@ubuntu:~/student/boolean$ ./boolean "not even" I have an odd number of arguments ```