Skip to content

Commit 3cf2c04

Browse files
committed
Auto merge of #43256 - Others:patch-1, r=steveklabnik
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.
2 parents 764b57e + c458627 commit 3cf2c04

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libstd/time/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ impl Instant {
163163
///
164164
/// # Panics
165165
///
166-
/// This function will panic if `earlier` is later than `self`, which should
167-
/// only be possible if `earlier` was created after `self`. Because
168-
/// `Instant` is monotonic, the only time that this should happen should be
169-
/// a bug.
166+
/// This function will panic if `earlier` is later than `self`.
170167
///
171168
/// # Examples
172169
///

0 commit comments

Comments
 (0)