From 0f7f6de9be27c2272b5c3b030e603c608b4e147e Mon Sep 17 00:00:00 2001 From: Tiago Collot Date: Wed, 12 Oct 2022 14:34:25 +0100 Subject: [PATCH] docs(secondhalf): refix in subject instructions and output --- subjects/secondhalf/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/secondhalf/README.md b/subjects/secondhalf/README.md index 232c11d2..cc512ef6 100644 --- a/subjects/secondhalf/README.md +++ b/subjects/secondhalf/README.md @@ -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] ```