Add link to the explanation of `zero values` in go`

This commit is contained in:
Augusto 2021-06-08 12:09:09 +01:00
parent 39e8eb3ccf
commit 7d693b518b
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@
### Instructions
Write a function `Compact` that takes a pointer to a slice of `string` as the argument.
Write a function `Compact` that takes a pointer to a slice of `string`s as the argument.
This function must:
- Return the number of elements with non-zero value.
- Return the number of elements with [non-zero value](https://tour.golang.org/basics/12).
- Compact, i.e., delete the elements with zero-values in the slice.