diff --git a/rust/pact_consumer/src/patterns/special_rules.rs b/rust/pact_consumer/src/patterns/special_rules.rs index 3580b66b6..64329669e 100644 --- a/rust/pact_consumer/src/patterns/special_rules.rs +++ b/rust/pact_consumer/src/patterns/special_rules.rs @@ -375,8 +375,8 @@ pub fn build_regex>(regex_str: S) -> Regex { /// # fn main() { /// json_pattern!({ /// // Match a string consisting of numbers and lower case letters, and -/// // generate `"10a"`.$crate::patterns:: -/// "id_string": term!("^[0-9a-z]$", "10a") +/// // generate `"10a"`. +/// "id_string": term!("^[0-9a-z]+$", "10a") /// }); /// # } /// ``` @@ -398,8 +398,8 @@ macro_rules! term { /// # fn main() { /// json_pattern!({ /// // Match a string consisting of numbers and lower case letters, and -/// // generate `"10a"`.$crate::patterns:: -/// "id_string": matching_regex!("^[0-9a-z]$", "10a") +/// // generate `"10a"` +/// "id_string": matching_regex!("^[0-9a-z]+$", "10a") /// }); /// # } /// ```