Commit 30169d1d2e

saccharin <a@magicalunixgirl.moe>
2024-12-26 22:31:15
std.math.tanh: fix special cases comment
1 parent 42dac40
Changed files (1)
lib
std
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) {