zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 30169d1d2eda12d0097de3aab213063a36c56a33 (tree)
parent 42dac40b3feeabe39b5f191d1e72d247327133ba
Author: saccharin <a@magicalunixgirl.moe>
Date:   Thu, 26 Dec 2024 21:31:15 +0000

std.math.tanh: fix special cases comment
Diffstat:
Mlib/std/math/tanh.zig | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/std/math/tanh.zig b/lib/std/math/tanh.zig @@ -14,9 +14,9 @@ const maxInt = std.math.maxInt; /// Returns the hyperbolic tangent of x. /// /// Special Cases: -/// - sinh(+-0) = +-0 -/// - sinh(+-inf) = +-1 -/// - sinh(nan) = nan +/// - tanh(+-0) = +-0 +/// - tanh(+-inf) = +-1 +/// - tanh(nan) = nan pub fn tanh(x: anytype) @TypeOf(x) { const T = @TypeOf(x); return switch (T) {