diff --git a/book/src/callbacks.md b/book/src/callbacks.md index 59326b74..469cfde5 100644 --- a/book/src/callbacks.md +++ b/book/src/callbacks.md @@ -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. \ No newline at end of file +Callbacks can also be used with #[logos(skip)], in which case the callback should return `Skip` or `()`. \ No newline at end of file