docs: Add doc comments to std.math.isNan

This commit is contained in:
Shun Sakai 2025-11-05 20:08:43 +09:00
parent a6d444c271
commit b0608409bb

View file

@ -4,6 +4,7 @@ const math = std.math;
const meta = std.meta;
const expect = std.testing.expect;
/// Returns whether x is a NaN, ignoring sign.
pub fn isNan(x: anytype) bool {
return x != x;
}