Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in piston docs Rectangle.draw method #1383

Open
PandaBean18 opened this issue Jun 23, 2022 · 0 comments
Open

Error in piston docs Rectangle.draw method #1383

PandaBean18 opened this issue Jun 23, 2022 · 0 comments

Comments

@PandaBean18
Copy link

The documentation says

draw_state draw state, draw_state::Default::default() can be used as a default,

It should be draw_state::DrawState::default()
https://docs.piston.rs/piston_window/graphics/rectangle/struct.Rectangle.html#method.draw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants