aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math.zig
diff options
context:
space:
mode:
authorWilliam Stein <wstein@gmail.com>2021-08-22 23:31:21 -0700
committerGitHub <noreply@github.com>2021-08-23 08:31:21 +0200
commitc465b34d32725f1f0bd019f6ecb77ece6b667320 (patch)
treeb2feb2c69c25bf0ca1e8f75a4b7ec4348d830f0d /lib/std/math.zig
parent72c4b80d31c3ccecbd8cf96e5afdf756e055dc6a (diff)
downloadzig-c465b34d32725f1f0bd019f6ecb77ece6b667320.tar.gz
zig-c465b34d32725f1f0bd019f6ecb77ece6b667320.zip
Trivial typo "for for" --> "for" (also a few nearby run-on sentence). (#9610)
Diffstat (limited to 'lib/std/math.zig')
-rw-r--r--lib/std/math.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig
index 9f92e2e82b..55ef506366 100644
--- a/lib/std/math.zig
+++ b/lib/std/math.zig
@@ -111,11 +111,11 @@ pub const inf = @import("math/inf.zig").inf;
/// the specified tolerance.
///
/// The `tolerance` parameter is the absolute tolerance used when determining if
-/// the two numbers are close enough, a good value for this parameter is a small
+/// the two numbers are close enough; a good value for this parameter is a small
/// multiple of `epsilon(T)`.
///
-/// Note that this function is recommended for for comparing small numbers
-/// around zero, using `approxEqRel` is suggested otherwise.
+/// Note that this function is recommended for comparing small numbers
+/// around zero; using `approxEqRel` is suggested otherwise.
///
/// NaN values are never considered equal to any value.
pub fn approxEqAbs(comptime T: type, x: T, y: T, tolerance: T) bool {
@@ -138,7 +138,7 @@ pub fn approxEqAbs(comptime T: type, x: T, y: T, tolerance: T) bool {
/// than zero.
///
/// The `tolerance` parameter is the relative tolerance used when determining if
-/// the two numbers are close enough, a good value for this parameter is usually
+/// the two numbers are close enough; a good value for this parameter is usually
/// `sqrt(epsilon(T))`, meaning that the two numbers are considered equal if at
/// least half of the digits are equal.
///