mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Improve panic docs for Instant::duration_since
The docs for Instant::duration_since has a confusing section on panicking. It's much more clear without the second two sentences of description.
This commit is contained in:
parent
a783fe2f77
commit
c458627230
@ -163,10 +163,7 @@ impl Instant {
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// This function will panic if `earlier` is later than `self`, which should
|
||||
/// only be possible if `earlier` was created after `self`. Because
|
||||
/// `Instant` is monotonic, the only time that this should happen should be
|
||||
/// a bug.
|
||||
/// This function will panic if `earlier` is later than `self`.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user