Skip to content

Documentation rewrite - #69

Merged
dhardy merged 2 commits into
masterfrom
push-owmnvlstrqyw
Aug 4, 2026
Merged

Documentation rewrite#69
dhardy merged 2 commits into
masterfrom
push-owmnvlstrqyw

Conversation

@dhardy

@dhardy dhardy commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This PR is a re-write or at least review of all existing documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR rewrites and expands the crate’s Rustdoc to better explain the conversion trait families, rounding modes, and the library’s “fallback behaviour” when using non-try_ conversion methods.

Changes:

  • Reworked crate-level docs in src/lib.rs with a quick-start example, rounding-mode overview, and clarified error semantics.
  • Expanded trait documentation in src/traits.rs, adding richer guidance and examples for implementing conversions.
  • Improved rounding-mode documentation in src/rounding.rs, including a shared definition of approximation limits and additional cross-links.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/traits.rs Substantial Rustdoc updates for conversion traits, including new examples and implementation guidance.
src/rounding.rs Enhanced rounding-mode docs and added a detailed “Limits of approximation” section reused by multiple modes.
src/lib.rs Rewritten crate-level documentation with updated structure, examples, and clearer error/fallback explanations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/traits.rs Outdated
Comment thread src/traits.rs Outdated
Comment thread src/lib.rs Outdated
Comment thread src/rounding.rs Outdated
@dhardy

dhardy commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Surprisingly useful feedback: this found some errors on my part.

@dhardy
dhardy merged commit 6b9d062 into master Aug 4, 2026
4 checks 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.

2 participants