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

Show example outputs in System documentation #1416

Merged

Conversation

dtolnay
Copy link
Contributor

@dtolnay dtolnay commented Dec 7, 2024

The scraped examples and existing documentation are not helpful at all in understanding how these functions relate under actual systems, e.g. understanding whether format!("{} {}", System::name(), System::os_version()) would produce something that is meaningful. Someone might try this on Linux and get "Ubuntu 24.04" and conclude it's good, but they end up producing nonsense like "Darwin 15.1.1" and "Pixel 9 15" on other systems.

Screenshot from 2024-12-07 10-26-12

@GuillaumeGomez
Copy link
Owner

More docs is always appreciated, so thanks a lot!

@GuillaumeGomez GuillaumeGomez merged commit 5c3d523 into GuillaumeGomez:master Dec 7, 2024
67 checks passed
@dtolnay dtolnay deleted the exampleplatform branch December 7, 2024 23:37
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.

2 participants