Skip to content

RustDocs for SystemTime and Instant should note that their Add<Duration> implementations panic #71226

Closed

Description

This note: https://doc.rust-lang.org/std/time/struct.SystemTime.html#panics is too deeply buried in the documentation.

Proposal:

Put a note after the underlying syscalls section in the overall struct documentation that math operations on SystemTime (and Instant) can panic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

A-docsArea: documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions