diff --git a/ch03/copySlice.go b/ch03/copySlice.go index 0033930..2d7269b 100644 --- a/ch03/copySlice.go +++ b/ch03/copySlice.go @@ -5,7 +5,6 @@ import ( ) func main() { - a6 := []int{-10, 1, 2, 3, 4, 5} a4 := []int{-1, -2, -3, -4} fmt.Println("a6:", a6) diff --git a/ch03/loops.go b/ch03/loops.go index cf5899f..96d1a98 100644 --- a/ch03/loops.go +++ b/ch03/loops.go @@ -5,7 +5,6 @@ import ( ) func main() { - for i := 0; i < 100; i++ { if i%20 == 0 { continue diff --git a/ch03/sortSlice.go b/ch03/sortSlice.go index 9c3ee56..8e31b3f 100644 --- a/ch03/sortSlice.go +++ b/ch03/sortSlice.go @@ -12,7 +12,6 @@ type aStructure struct { } func main() { - mySlice := make([]aStructure, 0) mySlice = append(mySlice, aStructure{"Mihalis", 180, 90}) mySlice = append(mySlice, aStructure{"Bill", 134, 45})