mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-01 00:33:05 +08:00
pkg/eval/vals: Correct the godoc of Cmp.
This commit is contained in:
parent
c71995ba9a
commit
7c0c3eb82d
|
@ -18,7 +18,8 @@ const (
|
|||
)
|
||||
|
||||
// Cmp compares two Elvish values and returns the ordering relationship between
|
||||
// them. Cmp(a, b) returns CmpEqual iff Equal(a, b) returns true.
|
||||
// them. Cmp(a, b) returns CmpEqual iff Equal(a, b) is true or both a and b are
|
||||
// NaNs.
|
||||
func Cmp(a, b any) Ordering {
|
||||
return cmpInner(a, b, Cmp)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user