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