From e5928b32f2ddbd295af03d92b9cc3a8e74f5bb12 Mon Sep 17 00:00:00 2001 From: jrosendo Date: Tue, 8 Nov 2022 16:28:49 +0000 Subject: [PATCH] docs(isSorted): fixed subject - fix grammar and indentation --- subjects/issorted/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subjects/issorted/README.md b/subjects/issorted/README.md index 7cc0097cf..b31efbac0 100644 --- a/subjects/issorted/README.md +++ b/subjects/issorted/README.md @@ -2,11 +2,11 @@ ### Instructions -Write a function `IsSorted` that returns `true`, if the slice of `int` is sorted, otherwise returns `false`. +Write a function `IsSorted()` that returns `true`, if the slice of `int` is sorted, otherwise returns `false`. -The function passed in the parameter returns a positive `int` if `a` (the first argument) is greater than to `b` (the second argument), it returns `0` if they are equal and it returns a negative `int` otherwise. +- The function passed as an argument `func(a, b int)` returns a positive `int` if the first argument is greater than the second argument, it returns `0` if they are equal and it returns a negative `int` otherwise. -To do your testing you have to write your own `f` function. +- To do your testing you have to write your own `f` function. ### Expected function @@ -40,7 +40,7 @@ func main() { } ``` -And its output : +And its output: ```console $ go run .