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