1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

docs: update doc

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

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)