From 0dc5d03516b53c7e037b938a9f6d8fb01559e0d4 Mon Sep 17 00:00:00 2001 From: Augusto Date: Mon, 7 Jun 2021 16:29:17 +0100 Subject: [PATCH] Rephrase instructions for exercise splitwhitespaces and some small fixes --- subjects/appendrange/README.md | 2 +- subjects/makerange/README.md | 2 +- subjects/printwordstables/README.md | 4 +--- subjects/splitwhitespaces/README.md | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/subjects/appendrange/README.md b/subjects/appendrange/README.md index 3190b4d2..0b0140da 100644 --- a/subjects/appendrange/README.md +++ b/subjects/appendrange/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function that takes an `int` min and an `int` max as parameters. That function returns a slice of `int` with all the values between min and max. +Write a function that takes an `int` min and an `int` max as parameters. That function returns a slice of `int`s with all the values between min and max. Min is included, and max is excluded. diff --git a/subjects/makerange/README.md b/subjects/makerange/README.md index 588781ca..feccdab2 100644 --- a/subjects/makerange/README.md +++ b/subjects/makerange/README.md @@ -3,7 +3,7 @@ ### Instructions Write a function that takes an `int` min and an `int` max as parameters. -That function returns a slice of `int` with all the values between min and max. +That function returns a slice of `int`s with all the values between min and max. Min is included, and max is excluded. diff --git a/subjects/printwordstables/README.md b/subjects/printwordstables/README.md index 21cd4f55..5297255e 100644 --- a/subjects/printwordstables/README.md +++ b/subjects/printwordstables/README.md @@ -2,9 +2,7 @@ ### Instructions -Write a function that prints the words of a `string` slice that will be returned by a function `SplitWhiteSpaces`. - -Each word is on a single line (each word ends with a `\n`). +Write a function that receives a `string slice` and prints each element of the slice in one line. ### Expected function diff --git a/subjects/splitwhitespaces/README.md b/subjects/splitwhitespaces/README.md index de3247ba..96769706 100644 --- a/subjects/splitwhitespaces/README.md +++ b/subjects/splitwhitespaces/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function that separates the words of a `string` and puts them in a `string` slice. +Write a function that separates the words of a `string` and puts them in a `string slice`. The separators are spaces, tabs and newlines.