From bd5605938c67b16e7198e2f67aa05e3078bf64fa Mon Sep 17 00:00:00 2001 From: MaurĂ­cio Antunes Date: Mon, 21 Nov 2022 16:59:29 -0300 Subject: fix: rename exercise --- exercises/slices/slices2/main.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 exercises/slices/slices2/main.go (limited to 'exercises/slices/slices2/main.go') diff --git a/exercises/slices/slices2/main.go b/exercises/slices/slices2/main.go new file mode 100644 index 0000000..54595ff --- /dev/null +++ b/exercises/slices/slices2/main.go @@ -0,0 +1,13 @@ +// slices2 +// Make me compile! + +// I AM NOT DONE +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) +} -- cgit v1.2.3-70-g09d2