Skip to content

Commit f233abb

Browse files
committed
Add comment to helper function
1 parent 1e7e2e4 commit f233abb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/tests/num/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ where
6666
assert_eq!(ten.rem(two), ten % two);
6767
}
6868

69+
/// Helper function for asserting number parsing returns a specific error
6970
fn test_parse<T>(num_str: &str, expected: Result<T, IntErrorKind>)
7071
where
7172
T: FromStr<Err = ParseIntError>,

0 commit comments

Comments
 (0)