Skip to content

Commit

Permalink
fix(docs): Escape pipes in Repeat::fold usage
Browse files Browse the repository at this point in the history
  • Loading branch information
DJDuque committed Aug 21, 2024
1 parent 6c9ecca commit f6ba051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/combinator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
//! | [`repeat`] | `repeat(1..=3, "ab")` | `"ababc"` | `"c"` | `Ok(vec!["ab", "ab"])` |Applies the parser between m and n times (n included) and returns the list of results in a Vec|
//! | [`repeat_till`] | `repeat_till(0.., "ab", "ef")` | `"ababefg"` | `"g"` | `Ok((vec!["ab", "ab"], "ef"))` |Applies the first parser until the second applies. Returns a tuple containing the list of results from the first in a Vec and the result of the second|
//! | [`separated`] | `separated(1..=3, "ab", ",")` | `"ab,ab,ab."` | `"."` | `Ok(vec!["ab", "ab", "ab"])` |Applies the parser and separator between m and n times (n included) and returns the list of results in a Vec|
//! | [`Repeat::fold`] | `repeat(1..=2, be_u8).fold(|| 0, |acc, item| acc + item)` | `[1, 2, 3]` | `[3]` | `Ok(3)` |Applies the parser between m and n times (n included) and folds the list of return value|
//! | [`Repeat::fold`] | <code>repeat(1..=2, be_u8).fold(\|\| 0, \|acc, item\| acc + item)</code> | `[1, 2, 3]` | `[3]` | `Ok(3)` |Applies the parser between m and n times (n included) and folds the list of return value|

Check failure

Code scanning / clippy

item in documentation is missing backticks Error

item in documentation is missing backticks

Check failure

Code scanning / clippy

item in documentation is missing backticks Error

item in documentation is missing backticks
//!
//! ## Partial related
//!
Expand Down

0 comments on commit f6ba051

Please sign in to comment.