diff --git a/lib/std/math/isnan.zig b/lib/std/math/isnan.zig index b3de93597afe..4512af807c83 100644 --- a/lib/std/math/isnan.zig +++ b/lib/std/math/isnan.zig @@ -4,6 +4,7 @@ const math = std.math; const meta = std.meta; const expect = std.testing.expect; +/// Returns `true` if `x` is not a number (NaN), and `false` otherwise. pub fn isNan(x: anytype) bool { return x != x; }