@@ -214,7 +214,7 @@ pub fn expectFmt(expected: []const u8, comptime template: []const u8, args: anyt
214
214
/// not approximately equal to the expected value, prints diagnostics to stderr
215
215
/// to show exactly how they are not equal, then returns a test failure error.
216
216
/// See `math.approxEqAbs` for more informations on the tolerance parameter.
217
- /// The types must be floating point
217
+ /// The types must be floating point.
218
218
pub fn expectApproxEqAbs (expected : anytype , actual : @TypeOf (expected ), tolerance : @TypeOf (expected )) ! void {
219
219
const T = @TypeOf (expected );
220
220
@@ -246,7 +246,7 @@ test "expectApproxEqAbs" {
246
246
/// not approximately equal to the expected value, prints diagnostics to stderr
247
247
/// to show exactly how they are not equal, then returns a test failure error.
248
248
/// See `math.approxEqRel` for more informations on the tolerance parameter.
249
- /// The types must be floating point
249
+ /// The types must be floating point.
250
250
pub fn expectApproxEqRel (expected : anytype , actual : @TypeOf (expected ), tolerance : @TypeOf (expected )) ! void {
251
251
const T = @TypeOf (expected );
252
252
@@ -719,16 +719,16 @@ pub fn checkAllAllocationFailures(backing_allocator: std.mem.Allocator, comptime
719
719
}
720
720
}
721
721
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.
723
723
pub fn refAllDecls (comptime T : type ) void {
724
724
if (! builtin .is_test ) return ;
725
725
inline for (comptime std .meta .declarations (T )) | decl | {
726
726
if (decl .is_pub ) _ = @field (T , decl .name );
727
727
}
728
728
}
729
729
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`.
732
732
pub fn refAllDeclsRecursive (comptime T : type ) void {
733
733
if (! builtin .is_test ) return ;
734
734
inline for (comptime std .meta .declarations (T )) | decl | {
0 commit comments