PistonDevelopers / piston

A modular game engine written in Rust

Home Page:https://www.piston.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in piston docs Rectangle.draw method

PandaBean18 opened this issue · comments

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