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:
Others 2017-07-15 16:23:11 -04:00 committed by GitHub
parent a783fe2f77
commit c458627230

View File

@ -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
///