mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-08 22:52:29 +08:00
refactor: use constraints from golang.org/x/exp/constraints
This commit is contained in:
@@ -1138,7 +1138,7 @@ func main() {
|
||||
<b>Signature:</b>
|
||||
|
||||
```go
|
||||
func Sort[T lancetconstraints.Ordered](slice []T, sortOrder ...string)
|
||||
func Sort[T constraints.Ordered](slice []T, sortOrder ...string)
|
||||
```
|
||||
|
||||
<b>Example:</b>
|
||||
|
||||
Reference in New Issue
Block a user