RustDocs for SystemTime and Instant should note that their Add<Duration> implementations panic #71226
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
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.
The text was updated successfully, but these errors were encountered: