docs(secondhalf): refix in subject instructions and output

This commit is contained in:
Tiago Collot 2022-10-12 14:34:25 +01:00 committed by Michele
parent b497d59dbf
commit 7cbf91dd63
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
Write a function `SecondHalf()` that receives a slice of `int` and returns another slice of `int` with the last half of the values.
- If the length is odd, round it down.
- If the length is odd, round it up.
### Expected function
@ -36,6 +36,6 @@ And its output:
```console
$ go run . | cat -e
[5 6 7 8 9 10]
[6 7 8 9 10]
[2 3]
```