Skip to content

Commit f6312e4

Browse files
wooster0Luukdegram
authored andcommitted
docs: minor improvements
Just some minor improvements when passing by.
1 parent fda0b2c commit f6312e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/std/testing.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ pub fn expectFmt(expected: []const u8, comptime template: []const u8, args: anyt
214214
/// not approximately equal to the expected value, prints diagnostics to stderr
215215
/// to show exactly how they are not equal, then returns a test failure error.
216216
/// See `math.approxEqAbs` for more informations on the tolerance parameter.
217-
/// The types must be floating point
217+
/// The types must be floating point.
218218
pub fn expectApproxEqAbs(expected: anytype, actual: @TypeOf(expected), tolerance: @TypeOf(expected)) !void {
219219
const T = @TypeOf(expected);
220220

@@ -246,7 +246,7 @@ test "expectApproxEqAbs" {
246246
/// not approximately equal to the expected value, prints diagnostics to stderr
247247
/// to show exactly how they are not equal, then returns a test failure error.
248248
/// See `math.approxEqRel` for more informations on the tolerance parameter.
249-
/// The types must be floating point
249+
/// The types must be floating point.
250250
pub fn expectApproxEqRel(expected: anytype, actual: @TypeOf(expected), tolerance: @TypeOf(expected)) !void {
251251
const T = @TypeOf(expected);
252252

@@ -719,16 +719,16 @@ pub fn checkAllAllocationFailures(backing_allocator: std.mem.Allocator, comptime
719719
}
720720
}
721721

722-
/// Given a type, reference all the declarations inside, so that the semantic analyzer sees them.
722+
/// Given a type, references all the declarations inside, so that the semantic analyzer sees them.
723723
pub fn refAllDecls(comptime T: type) void {
724724
if (!builtin.is_test) return;
725725
inline for (comptime std.meta.declarations(T)) |decl| {
726726
if (decl.is_pub) _ = @field(T, decl.name);
727727
}
728728
}
729729

730-
/// Given a type, and Recursively reference all the declarations inside, so that the semantic analyzer sees them.
731-
/// For deep types, you may use `@setEvalBranchQuota`
730+
/// Given a type, recursively references all the declarations inside, so that the semantic analyzer sees them.
731+
/// For deep types, you may use `@setEvalBranchQuota`.
732732
pub fn refAllDeclsRecursive(comptime T: type) void {
733733
if (!builtin.is_test) return;
734734
inline for (comptime std.meta.declarations(T)) |decl| {

0 commit comments

Comments
 (0)