Skip to content

Commit e8b5cc4

Browse files
committed
feat: drop support from ending
1 parent 40a121e commit e8b5cc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slice/drop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package slice
22

33
// Drop
4-
// Creates a slice of array with n elements dropped from the beginning while n >=0 and the endding while n < 0.
4+
// Creates a slice of array with n elements dropped from the beginning while n >=0 and the ending while n < 0.
55
func Drop[T any](array []T, n int) (result []T) {
66
length := len(array)
77
if n < 0 {

0 commit comments

Comments
 (0)