Example file path and line overlapping with code
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Code
const PIXEL_PERFECT_LAYERS: RenderLayers = RenderLayers::layer(0);
/// Render layers for high-resolution rendering.
const HIGH_RES_LAYERS: RenderLayers = RenderLayers::layer(1);
Expected Outcome
I would expect the file path to not hide the code. Maybe add an extra empty line below the last line from the example?
Actual Output
The end of the last line is hidden behind the file path and line number.
Version
rustdoc 1.99.0-nightly (3d6c19bb9 2026-08-11)
Additional Details
N/A
If you feel this could be a good first issue, I would gladly try, if someone could give some guidelines. Cheers!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the linked rustdoc page for RenderLayers::layer and inspect how the example's file path and line number are rendered over the final code line. Identify the rustdoc rendering entry point and an existing relevant test, then confirm the fix by checking that the path and line number no longer obscure the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100