From cf33abd9d4c98abf33409de55495531a6222ae1d Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Fri, 21 Jun 2019 18:53:10 +0100 Subject: [PATCH] translation and fix --- subjects/compact.en.md | 8 ++++---- subjects/compact.fr.md | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/subjects/compact.en.md b/subjects/compact.en.md index 4f35ffe77..576dec077 100644 --- a/subjects/compact.en.md +++ b/subjects/compact.en.md @@ -1,12 +1,12 @@ -## Compact +## compact ### Instructions -Write a function that will take a pointer to a array as parameter and overwrites any element that points to `nil`. +Write a function `Compact` that takes a pointer to an array as parameter and overwrites any element that points to `nil`. -- If you not sure what the function does. It exists in Ruby. +- Hint: This fonction exists in Ruby. -### Expected functions +### Expected function ```go func Compact(ptr *[]string, length int) int { diff --git a/subjects/compact.fr.md b/subjects/compact.fr.md index 4f35ffe77..b2a50fc8a 100644 --- a/subjects/compact.fr.md +++ b/subjects/compact.fr.md @@ -1,12 +1,12 @@ -## Compact +## compact ### Instructions -Write a function that will take a pointer to a array as parameter and overwrites any element that points to `nil`. +Écrire une fonction `Compact` qui prend un pointeur sur tableau comme paramètre et qui réécris sur les éléments qui pointent sur `nil`. -- If you not sure what the function does. It exists in Ruby. +- Indice: Cette fonction existe in Ruby. -### Expected functions +### Fonction attendue ```go func Compact(ptr *[]string, length int) int { @@ -14,9 +14,9 @@ func Compact(ptr *[]string, length int) int { } ``` -### Usage +### Utilisation -Here is a possible [program](TODO-LINK) to test your function : +Voici un éventuel [programme](TODO-LINK) pour tester votre fonction : ```go package main @@ -31,7 +31,7 @@ func main() { } ``` -And its output : +Et son résultat : ```console student@ubuntu:~/piscine/test$ go build