From e43ab9542a8f16a1a917b08c423643ab80092e7e Mon Sep 17 00:00:00 2001 From: MaurĂ­cio Antunes Date: Mon, 21 Nov 2022 16:38:17 -0300 Subject: feat: new slice exercise and swap 2 and 3 --- exercises/slices/slices2/main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'exercises/slices/slices2/main.go') diff --git a/exercises/slices/slices2/main.go b/exercises/slices/slices2/main.go index 54595ff..7ec586b 100644 --- a/exercises/slices/slices2/main.go +++ b/exercises/slices/slices2/main.go @@ -7,7 +7,6 @@ package main import "fmt" func main() { - names := [4]string{"John", "Maria", "Carl", "Peter"} - lastTwoNames := names[] // after figuring out the answer, try with other low/high bounds - fmt.Println(lastTwoNames) + names := [4]string{"John", "Maria", "Carl", 10} + fmt.Println(names) } -- cgit v1.2.3-70-g09d2