git: 9front

Download patch

ref: 5e93424120821c5faa51febe352f7c902882b707
parent: e669e34e85f671753ae63f255c30c1065515150d
author: kvik <kvik@a-b.xyz>
date: Thu Feb 18 16:40:30 EST 2021

nan(2): document isInf(x, 0) matching +∞ and -∞

--- a/sys/man/2/nan
+++ b/sys/man/2/nan
@@ -45,7 +45,9 @@
 else negative infinity.
 .I IsInf
 returns true if its first argument is infinity
-with the same sign as the second argument.
+with a sign matching the second argument.
+A zero sign matches both negative and positive
+infinities.
 .SH SOURCE
 .B /sys/src/libc/port/nan.c
 .SH "SEE ALSO"
--