Skip to content

fix: clarify misleading 'Error' comment in print_display example#2004

Merged
marioidival merged 1 commit intorust-lang:masterfrom
Abhinav-ranish:fix/1870-print-display-error-comment
Apr 1, 2026
Merged

fix: clarify misleading 'Error' comment in print_display example#2004
marioidival merged 1 commit intorust-lang:masterfrom
Abhinav-ranish:fix/1870-print-display-error-comment

Conversation

@Abhinav-ranish
Copy link
Copy Markdown
Contributor

Fixes #1870

The abrupt "Error." fragment confused learners into thinking the example itself had an error. Reworded to clarify that the example compiles fine, but uncommenting the binary formatting line would fail since fmt::Binary is not implemented.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 1, 2026

r? @marioidival

rustbot has assigned @marioidival.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @marioidival

@marioidival marioidival merged commit 37853a7 into rust-lang:master Apr 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

print_display: Comment at end indicates an error, yet example compiles and runs without error.

3 participants