I think there's a bug in the Counter guide on the Ratatui docs website.
Under the Handle Keyboard Events heading, it doesn't mention that the #[test] should be included in the tests module. It is included in the impl App block. This is a bug because it's a duplicate function name in the impl block.
The annotated section should be under mod tests, not inside the impl App block.
I think there's a bug in the Counter guide on the Ratatui docs website.
Under the Handle Keyboard Events heading, it doesn't mention that the
#[test]
should be included in thetests
module. It is included in theimpl App
block. This is a bug because it's a duplicate function name in theimpl
block.The annotated section should be under
mod tests
, not inside theimpl App
block.