From 3fdb1a0d4c61bf9f0b00a426ed3806904db5b20a Mon Sep 17 00:00:00 2001 From: MSilva95 Date: Fri, 28 Feb 2020 17:50:09 +0000 Subject: [PATCH] subject corrections --- subjects/alphamirror.en.md | 2 +- subjects/atoibaseprog.en.md | 2 +- subjects/compareprog.en.md | 2 +- subjects/itoaprog.en.md | 2 +- subjects/options.en.md | 2 +- subjects/revwstr.en.md | 2 +- subjects/rot13.en.md | 2 +- subjects/union.en.md | 6 +++--- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/subjects/alphamirror.en.md b/subjects/alphamirror.en.md index bb84af50c..10b8f3430 100644 --- a/subjects/alphamirror.en.md +++ b/subjects/alphamirror.en.md @@ -13,7 +13,7 @@ The final result will be followed by a newline (`'\n'`). If the number of arguments is different from 1, the program displays only a newline (`'\n'`). -### Usage +### Usage: ```console student@ubuntu:~/[[ROOT]]/alphamirror$ go build diff --git a/subjects/atoibaseprog.en.md b/subjects/atoibaseprog.en.md index 10746a06e..1740f542e 100644 --- a/subjects/atoibaseprog.en.md +++ b/subjects/atoibaseprog.en.md @@ -15,7 +15,7 @@ This means that: Write a function that takes a `string` number and its `string` base in parameters and returns its conversion as an `int`. -If the base or the `string` number is not valid it returns `0`: +If the base or the `string` number is not valid it returns `0` Validity rules for a base : diff --git a/subjects/compareprog.en.md b/subjects/compareprog.en.md index 00edb2f84..7c888463b 100644 --- a/subjects/compareprog.en.md +++ b/subjects/compareprog.en.md @@ -6,7 +6,7 @@ Write a program that behaves like the `Compare` function from the `Go` package ` This program prints a number after comparing two `string` lexicographically. -### Usage : +### Usage: ```console student@ubuntu:~/compareprog$ go build diff --git a/subjects/itoaprog.en.md b/subjects/itoaprog.en.md index 902025971..eac8e82c6 100644 --- a/subjects/itoaprog.en.md +++ b/subjects/itoaprog.en.md @@ -13,7 +13,7 @@ This means that: ### Instructions -- Write a function that simulates the behaviour of the `Itoa` function in Go. `Itoa` transforms a number represented as an`int` in a number represented as a `string`. +- Write a function that simulates the behaviour of the `Itoa` function in Go. `Itoa` transforms a number represented as an `int` in a number represented as a `string`. - For this exercise the handling of the signs + or - **does have** to be taken into account. diff --git a/subjects/options.en.md b/subjects/options.en.md index 6a04e8c29..490728dd3 100644 --- a/subjects/options.en.md +++ b/subjects/options.en.md @@ -18,7 +18,7 @@ Write a program that takes an undefined number of arguments which could be consi - A wrong `option` must print `Invalid Option` followed by a newline. -## Usage +### Usage ```console student@ubuntu:~/[[ROOT]]/test$ go build diff --git a/subjects/revwstr.en.md b/subjects/revwstr.en.md index dffa54b4e..a95f9db4f 100644 --- a/subjects/revwstr.en.md +++ b/subjects/revwstr.en.md @@ -8,7 +8,7 @@ Write a program that takes a `string` as a parameter, and prints its words in re - If the number of parameters is different from 1, the program will display newline (`'\n'`). -- In the parameters that are going to be tested, there will not be any extra spaces. (meaning that there will not be additionnal spaces at the beginning or at the end of the `string`and that words will always be separated by exactly one space). +- In the parameters that are going to be tested, there will not be any extra spaces. (meaning that there will not be additional spaces at the beginning or at the end of the `string` and that words will always be separated by exactly one space). ### Usage diff --git a/subjects/rot13.en.md b/subjects/rot13.en.md index f1da5b6ee..5f44a700b 100644 --- a/subjects/rot13.en.md +++ b/subjects/rot13.en.md @@ -5,7 +5,7 @@ Write a program that takes a `string` and displays it, replacing each of its letters by the letter 13 spaces ahead in alphabetical order. -- 'z' becomes 'm' and 'Z' becomes 'M'. Case remains unaffected. +- 'z' becomes 'm' and 'Z' becomes 'M'. The case of the letter stays the same. - The output will be followed by a newline (`'\n'`). diff --git a/subjects/union.en.md b/subjects/union.en.md index b7db67a35..3394c71a8 100644 --- a/subjects/union.en.md +++ b/subjects/union.en.md @@ -4,7 +4,7 @@ Write a program that takes two `string` and displays, without doubles, the characters that appear in either one of the `string`. -The display will be in the order characters appear in the command line, and will be followed by a newline (`'\n'`). +The display will be in the order that the characters will appear on the command line and will be followed by a newline (`'\n'`). If the number of arguments is different from 2, then the program displays newline (`'\n'`). @@ -12,9 +12,9 @@ If the number of arguments is different from 2, then the program displays newlin ```console student@ubuntu:~/[[ROOT]]/union$ go build -student@ubuntu:~/[[ROOT]]/union$ ./union zpadinton "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e +student@ubuntu:~/[[ROOT]]/union$ ./union "zpadinton" "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e zpadintoqefwjy$ -student@ubuntu:~/[[ROOT]]/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e +student@ubuntu:~/[[ROOT]]/union$ ./union "ddf6vewg64f" "gtwthgdwthdwfteewhrtag6h4ffdhsd" | cat -e df6vewg4thras$ student@ubuntu:~/[[ROOT]]/union$ ./union "rien" "cette phrase ne cache rien" | cat -e rienct phas$