Skip to content

Commit 468f4a0

Browse files
Fix descriptions of erfc and erfcf
As described in the second paragraph of the docs for these functions, they are the complementary error function, not the error function.
1 parent b94714e commit 468f4a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler-builtins/libm/src/math/erf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ pub fn erf(x: f64) -> f64 {
263263
}
264264
}
265265

266-
/// Error function (f64)
266+
/// Complementary error function (f64)
267267
///
268268
/// Calculates the complementary probability.
269269
/// Is `1 - erf(x)`. Is computed directly, so that you can use it to avoid

compiler-builtins/libm/src/math/erff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub fn erff(x: f32) -> f32 {
174174
}
175175
}
176176

177-
/// Error function (f32)
177+
/// Complementary error function (f32)
178178
///
179179
/// Calculates the complementary probability.
180180
/// Is `1 - erf(x)`. Is computed directly, so that you can use it to avoid

0 commit comments

Comments
 (0)