docs: update doc

This commit is contained in:
dudaodong committed 2023-08-27 11:41:29 +08:00
1 parent a418549525
commit 8bd31d39c3
11 files changed
+184 -168

No files matched your search

+1 -1
View File
@@ -343,7 +343,7 @@ func Log(n, base float64) float64 {
}
// Abs returns the absolute value of x.
// Play: todo
// Play: https://go.dev/play/p/fsyBh1Os-1d
func Abs[T constraints.Integer | constraints.Float](x T) T {
if x < 0 {
return (-x)