PistonDevelopers / PistonDevelopers/piston

Error in piston docs Rectangle.draw method

Open Beginner friendly
#1,383 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
4.7k
Forks
235
Avg merge
1m
Merged PRs (30d)
4

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked Rectangle.draw documentation and compare the displayed draw_state default with the issue report. Update the documented Rust path to the correct default expression, then verify the rendered method documentation shows the corrected text.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.