File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ impl ProcessTime {
170170 /// Panics if `earlier` is later than &self.
171171 /// Because ProcessTime is monotonic, the only time that `earlier` should be
172172 /// 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 ;
174174
175175 /// Panics if self is later than the current time (can happen if a ProcessTime
176176 /// is produced synthetically)
@@ -327,4 +327,4 @@ use `duration_from_earlier` reliably to get a positive `Duration`.
327327What should ` SystemTimeError ` look like?
328328
329329This 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