We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40a121e commit e8b5cc4Copy full SHA for e8b5cc4
slice/drop.go
@@ -1,7 +1,7 @@
1
package slice
2
3
// Drop
4
-// Creates a slice of array with n elements dropped from the beginning while n >=0 and the endding while n < 0.
+// Creates a slice of array with n elements dropped from the beginning while n >=0 and the ending while n < 0.
5
func Drop[T any](array []T, n int) (result []T) {
6
length := len(array)
7
if n < 0 {
0 commit comments