diff options
| author | Joseph Crail <jbcrail@gmail.com> | 2015-02-04 23:00:02 -0500 |
|---|---|---|
| committer | Joseph Crail <jbcrail@gmail.com> | 2015-02-04 23:00:02 -0500 |
| commit | dc2e444e506c31e8f4a4331c7f6264ca6c107bb6 (patch) | |
| tree | eee7ee05c474531329e04db0cce74ae2d87422fd /src/libstd/time | |
| parent | ba2f13ef0667ce90f55ab0f1506bf5ee7b852d96 (diff) | |
| download | rust-dc2e444e506c31e8f4a4331c7f6264ca6c107bb6.tar.gz rust-dc2e444e506c31e8f4a4331c7f6264ca6c107bb6.zip | |
Fix for misspelled comments.
The spelling corrections were made in both documentation comments and regular comments.
Diffstat (limited to 'src/libstd/time')
| -rw-r--r-- | src/libstd/time/duration.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/time/duration.rs b/src/libstd/time/duration.rs index 76b8d736aad..42ef3459a0e 100644 --- a/src/libstd/time/duration.rs +++ b/src/libstd/time/duration.rs @@ -232,7 +232,7 @@ impl Duration { secs_part.checked_add(nanos_part as i64) } - /// Add two durations, returning `None` if overflow occured. + /// Add two durations, returning `None` if overflow occurred. #[unstable(feature = "std_misc")] pub fn checked_add(&self, rhs: &Duration) -> Option<Duration> { let mut secs = try_opt!(self.secs.checked_add(rhs.secs)); @@ -247,7 +247,7 @@ impl Duration { if d < MIN || d > MAX { None } else { Some(d) } } - /// Subtract two durations, returning `None` if overflow occured. + /// Subtract two durations, returning `None` if overflow occurred. #[unstable(feature = "std_misc")] pub fn checked_sub(&self, rhs: &Duration) -> Option<Duration> { let mut secs = try_opt!(self.secs.checked_sub(rhs.secs)); |
