From c575a8e961881731cdccddfc274f043e84a97851 Mon Sep 17 00:00:00 2001 From: Wangshan Lu Date: Tue, 22 Sep 2015 23:34:45 +0800 Subject: [PATCH] Fix typo --- text/0000-time-improvements.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text/0000-time-improvements.md b/text/0000-time-improvements.md index f7185aa0dd2..56f3bc64a2a 100644 --- a/text/0000-time-improvements.md +++ b/text/0000-time-improvements.md @@ -170,7 +170,7 @@ impl ProcessTime { /// Panics if `earlier` is later than &self. /// Because ProcessTime is monotonic, the only time that `earlier` should be /// a later time is a bug in your code. - pub fn duration_from_earlier(&self, earlier: ProcessTime) -> ProcessTime; + pub fn duration_from_earlier(&self, earlier: ProcessTime) -> Duration; /// Panics if self is later than the current time (can happen if a ProcessTime /// is produced synthetically) @@ -327,4 +327,4 @@ use `duration_from_earlier` reliably to get a positive `Duration`. What should `SystemTimeError` look like? This RFC leaves types related to human representations of dates and times -to a future proposal. \ No newline at end of file +to a future proposal.