ratatui / ratatui-website

Ratatui Documentation
http://ratatui.rs/
MIT License
102 stars 79 forks source link

Bug in the Counter tutorial on the Ratatui website #733

Closed pcgeek86 closed 3 weeks ago

pcgeek86 commented 1 month ago

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.

image
orhun commented 1 month ago

Good catch! Would you be interested in contributing a fix?

christeefy commented 3 weeks ago

I am interested in contributing a fix, if no one else is taking this up. Should have something in the coming days :)