Skip to content

Commit

Permalink
Updated book's skip callback return type
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteriouslyseeing committed Dec 1, 2024
1 parent 932b02e commit a6fc08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ where regular expressions are too limiting. For specifics look at
[`Lexer::remainder`](https://docs.rs/logos/latest/logos/struct.Lexer.html#method.remainder) and
[`Lexer::bump`](https://docs.rs/logos/latest/logos/struct.Lexer.html#method.bump).

Callbacks can also be used with #[logos(skip)], in which case they will ignore the return type of the callback.
Callbacks can also be used with #[logos(skip)], in which case the callback should return `Skip` or `()`.

0 comments on commit a6fc08a

Please sign in to comment.