about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEthan Brierley <ethanboxx@gmail.com>2020-10-07 08:02:36 +0100
committerEthan Brierley <ethanboxx@gmail.com>2020-10-07 08:02:36 +0100
commitf233abb9091e3c0999f0cb80ba652d6094e3d5b4 (patch)
tree8f58a3e4234e6ad8377b187dcab57a871c1b9e2f
parent1e7e2e40e4992a82b9e5bc7120bd33964bcef355 (diff)
downloadrust-f233abb9091e3c0999f0cb80ba652d6094e3d5b4.tar.gz
rust-f233abb9091e3c0999f0cb80ba652d6094e3d5b4.zip
Add comment to helper function
-rw-r--r--library/core/tests/num/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/tests/num/mod.rs b/library/core/tests/num/mod.rs
index 4fd9f721b82..12e52252278 100644
--- a/library/core/tests/num/mod.rs
+++ b/library/core/tests/num/mod.rs
@@ -66,6 +66,7 @@ where
     assert_eq!(ten.rem(two), ten % two);
 }
 
+/// Helper function for asserting number parsing returns a specific error
 fn test_parse<T>(num_str: &str, expected: Result<T, IntErrorKind>)
 where
     T: FromStr<Err = ParseIntError>,