diff --git a/common/src/parsing.rs b/common/src/parsing.rs index b67e015b..d1452a46 100644 --- a/common/src/parsing.rs +++ b/common/src/parsing.rs @@ -24,14 +24,9 @@ where /// Parse an exclusive range from a string. /// /// A valid range is of the form `lhs..rhs`, where `lhs` and `rhs` are numbers. -/// -/// # Example -/// -/// ```rust -/// # use common::parsing::parse_range_exclusive; -/// assert_eq!(parse_range_exclusive::("0..10"), Ok(0..10)); -/// ``` -pub fn parse_range_exclusive(s: &str) -> Result, RangeParseError> +pub(crate) fn parse_range_exclusive( + s: &str, +) -> Result, RangeParseError> where NumberT: Display + FromStr + From + Add, NumberT::Err: Display, @@ -42,14 +37,9 @@ where /// Parse an inclusive range from a string. /// /// A valid range is of the form `lhs..=rhs`, where `lhs` and `rhs` are numbers. -/// -/// # Example -/// -/// ```rust -/// # use common::parsing::parse_range_inclusive; -/// assert_eq!(parse_range_inclusive::("0..=10"), Ok(0..11)); -/// ``` -pub fn parse_range_inclusive(s: &str) -> Result, RangeParseError> +pub(crate) fn parse_range_inclusive( + s: &str, +) -> Result, RangeParseError> where NumberT: Display + FromStr + From + Add, NumberT::Err: Display,