Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Wirth <[email protected]>
  • Loading branch information
zjp-CN and Veykril committed Apr 17, 2022
1 parent 7d7f727 commit 5c5332d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syntax-extensions/expansion.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ as many as is needed to completely expand all invocations.
Well, not *quite*.
In fact, the compiler imposes an upper limit on the number of such recursive passes it is willing to run before giving up.
This is known as the syntax extension recursion limit and defaults to 128.
If the 128nd expansion contains a syntax extension invocation, the compiler will abort with an error indicating that the recursion limit was exceeded.
If the 128th expansion contains a syntax extension invocation, the compiler will abort with an error indicating that the recursion limit was exceeded.

This limit can be raised using the `#![recursion_limit="…"]` [attribute][recursion_limit], though it *must* be done crate-wide.
Generally, it is recommended to try and keep syntax extension below this limit wherever possible as it may impact compilation times.
Expand Down

0 comments on commit 5c5332d

Please sign in to comment.