Num.neg docs

See also https://github.com/roc-lang/roc/issues/6959

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2024-08-03 14:37:00 +02:00 committed by GitHub
parent 034d149b3a
commit fd8b7355f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -708,6 +708,8 @@ absDiff = \a, b ->
##
## Num.neg 0.0
## ```
## !! Num.neg is not completely implemented for all types in all contexts, see github.com/roc-lang/roc/issues/6959
##
## This is safe to use with any [Frac], but it can cause overflow when used with certain [Int] values.
##
## For example, calling #Num.neg on the lowest value of a signed integer (such as [Num.minI64] or [Num.minI32]) will cause overflow.