Skip to content

Commit 30169d1

Browse files
2by8217967alexrp
authored andcommitted
std.math.tanh: fix special cases comment
1 parent 42dac40 commit 30169d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/std/math/tanh.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
2020
pub fn tanh(x: anytype) @TypeOf(x) {
2121
const T = @TypeOf(x);
2222
return switch (T) {

0 commit comments

Comments
 (0)