authorgravatar for a@magicalunixgirl.moesaccharin <a@magicalunixgirl.moe> 2024-12-26 21:31:15+00:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-27 03:12:03+01:00
log30169d1d2eda12d0097de3aab213063a36c56a33
treeb801d652ab3e63f902bed2b02f6733ff921e9322
parent42dac40b3feeabe39b5f191d1e72d247327133ba

std.math.tanh: fix special cases comment


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/math/tanh.zig+3-3
......@@ -14,9 +14,9 @@ const maxInt = std.math.maxInt;
1414/// Returns the hyperbolic tangent of x.
1515///
1616/// Special Cases:
17/// - sinh(+-0) = +-0
18/// - sinh(+-inf) = +-1
19/// - sinh(nan) = nan
17/// - tanh(+-0) = +-0
18/// - tanh(+-inf) = +-1
19/// - tanh(nan) = nan
2020pub fn tanh(x: anytype) @TypeOf(x) {
2121 const T = @TypeOf(x);
2222 return switch (T) {