Skip to content

Commit

Permalink
Add a note on with_recursion_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
blaginin committed Nov 26, 2024
1 parent c9eef87 commit 913a291
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ impl<'a> Parser<'a> {
/// # Ok(())
/// # }
/// ```
///
/// Note: when "std" feature is enabled, this crate uses additional stack overflow protection
// for some of its recursive methods. See [`recursive::recursive`] for more information.
pub fn with_recursion_limit(mut self, recursion_limit: usize) -> Self {
self.recursion_counter = RecursionCounter::new(recursion_limit);
self
Expand Down

0 comments on commit 913a291

Please sign in to comment.