Skip to content

Commit 3f095d5

Browse files
committed
Merge pull request #2 from WiSaGaN/patch-1
Fix typo
2 parents 95d180e + c575a8e commit 3f095d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-time-improvements.md

+2-2
Original file line numberDiff line numberDiff 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`.
327327
What should `SystemTimeError` look like?
328328

329329
This RFC leaves types related to human representations of dates and times
330-
to a future proposal.
330+
to a future proposal.

0 commit comments

Comments
 (0)