diff --git a/SliceTricks.md b/SliceTricks.md index b3e89e04..05130ee5 100644 --- a/SliceTricks.md +++ b/SliceTricks.md @@ -9,7 +9,7 @@ a = append(a, b...) #### Copy ```go -b = make([]T, len(a)) +b := make([]T, len(a)) copy(b, a) // These two are often a little slower than the above one,