File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ impl ProcessTime {
170
170
/// Panics if `earlier` is later than &self.
171
171
/// Because ProcessTime is monotonic, the only time that `earlier` should be
172
172
/// a later time is a bug in your code.
173
- pub fn duration_from_earlier (& self , earlier : ProcessTime ) -> ProcessTime ;
173
+ pub fn duration_from_earlier (& self , earlier : ProcessTime ) -> Duration ;
174
174
175
175
/// Panics if self is later than the current time (can happen if a ProcessTime
176
176
/// is produced synthetically)
@@ -327,4 +327,4 @@ use `duration_from_earlier` reliably to get a positive `Duration`.
327
327
What should ` SystemTimeError ` look like?
328
328
329
329
This RFC leaves types related to human representations of dates and times
330
- to a future proposal.
330
+ to a future proposal.
You can’t perform that action at this time.
0 commit comments