aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2022-10-03 19:52:39 +0200
committerr00ster91 <r00ster91@proton.me>2022-10-05 21:19:10 +0200
commit654e0b6679f3436bacbf685223d6ab68f707a62f (patch)
tree3d643918bf5ab0e1a0754eeca210ee63cdd452e4 /lib/std/testing.zig
parent34835bbbcfe81cc87e823d14dc9b25e698ad5edc (diff)
downloadzig-654e0b6679f3436bacbf685223d6ab68f707a62f.tar.gz
zig-654e0b6679f3436bacbf685223d6ab68f707a62f.zip
fix(text): hyphenation and other fixes
Diffstat (limited to 'lib/std/testing.zig')
-rw-r--r--lib/std/testing.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig
index 2279e6ef09..60a778ad7a 100644
--- a/lib/std/testing.zig
+++ b/lib/std/testing.zig
@@ -213,8 +213,8 @@ pub fn expectFmt(expected: []const u8, comptime template: []const u8, args: anyt
/// This function is intended to be used only in tests. When the actual value is
/// not approximately equal to the expected value, prints diagnostics to stderr
/// to show exactly how they are not equal, then returns a test failure error.
-/// See `math.approxEqAbs` for more informations on the tolerance parameter.
-/// The types must be floating point.
+/// See `math.approxEqAbs` for more information on the tolerance parameter.
+/// The types must be floating-point.
pub fn expectApproxEqAbs(expected: anytype, actual: @TypeOf(expected), tolerance: @TypeOf(expected)) !void {
const T = @TypeOf(expected);
@@ -245,8 +245,8 @@ test "expectApproxEqAbs" {
/// This function is intended to be used only in tests. When the actual value is
/// not approximately equal to the expected value, prints diagnostics to stderr
/// to show exactly how they are not equal, then returns a test failure error.
-/// See `math.approxEqRel` for more informations on the tolerance parameter.
-/// The types must be floating point.
+/// See `math.approxEqRel` for more information on the tolerance parameter.
+/// The types must be floating-point.
pub fn expectApproxEqRel(expected: anytype, actual: @TypeOf(expected), tolerance: @TypeOf(expected)) !void {
const T = @TypeOf(expected);