From 2cc619787e15225731ef214eec3079db132981b4 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Mon, 17 Jun 2019 19:25:26 +0100 Subject: [PATCH] fix of subjects --- subjects/boolean.en.md | 2 +- subjects/boolean.fr.md | 2 +- subjects/point.en.md | 11 ++++++++--- subjects/point.fr.md | 18 ++++++++++++------ 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/subjects/boolean.en.md b/subjects/boolean.en.md index eab52ae02..b6dce5574 100644 --- a/subjects/boolean.en.md +++ b/subjects/boolean.en.md @@ -1,4 +1,4 @@ -## Boolean +## boolean ### Instructions diff --git a/subjects/boolean.fr.md b/subjects/boolean.fr.md index 3fc00c7af..67b64856a 100644 --- a/subjects/boolean.fr.md +++ b/subjects/boolean.fr.md @@ -1,4 +1,4 @@ -## Boolean +## boolean ### Instructions diff --git a/subjects/point.en.md b/subjects/point.en.md index d74ce5d5d..f91b29bad 100644 --- a/subjects/point.en.md +++ b/subjects/point.en.md @@ -1,12 +1,17 @@ -## Point +## point ### Instructions -Create a `.go` file and copy the code below into our 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 `point`. +### Code to be copied + ```go func setPoint(ptr *point) { ptr.x = 42 diff --git a/subjects/point.fr.md b/subjects/point.fr.md index ba6b426e1..326af58ba 100644 --- a/subjects/point.fr.md +++ b/subjects/point.fr.md @@ -1,10 +1,17 @@ -## Point +## point ### 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 setPoint(ptr *point) { @@ -17,12 +24,11 @@ func main() { setPoint(points) - fmt.Printf("x = %d, y = %d",points.x, points.y) - fmt.Println() + fmt.Printf("x = %d, y = %d\n",points.x, points.y) } ``` -### Expected output +### Usage ```console student@ubuntu:~/piscine/test$ go build