mirror of
https://github.com/samber/lo.git
synced 2025-10-05 07:56:51 +08:00
docs: grammar improvements (#673)
* lint: pin golangci-lint version * docs: grammar fixes * docs: remove "truthy" terminology * docs: remove "array" terminology * docs: grammar fixes * Update .github/workflows/lint.yml --------- Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
This commit is contained in:
@@ -67,7 +67,7 @@ func ExampleReverse() {
|
||||
// Output: [5 4 3 2 1 0]
|
||||
}
|
||||
|
||||
// Fill fills elements of array with `initial` value.
|
||||
// Fill fills elements of a slice with `initial` value.
|
||||
// Play: https://go.dev/play/p/VwR34GzqEub
|
||||
func Fill[T any, Slice ~[]T](collection Slice, initial T) {
|
||||
for i := range collection {
|
||||
|
Reference in New Issue
Block a user