mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
docs: Add doc comments to std.math.isNan
This commit is contained in:
parent
a6d444c271
commit
b0608409bb
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue