docs: Change doc comments for std.math.isNan

This commit is contained in:
Shun Sakai 2025-11-08 02:05:49 +09:00 committed by GitHub
parent b0608409bb
commit b71da01703
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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