diff options
| author | Trevor Spiteri <tspiteri@ieee.org> | 2017-12-21 02:39:01 +0100 |
|---|---|---|
| committer | Trevor Spiteri <tspiteri@ieee.org> | 2017-12-21 02:39:01 +0100 |
| commit | 9d6bd0536aed290f4fe80b42820fcf2463d2f8b3 (patch) | |
| tree | 7ad43434c283c05405836e8eea77b2d206a3a39f /src/libstd | |
| parent | 7eb64b86ce44cc1828dd176a8b981e37ea08fc38 (diff) | |
| download | rust-9d6bd0536aed290f4fe80b42820fcf2463d2f8b3.tar.gz rust-9d6bd0536aed290f4fe80b42820fcf2463d2f8b3.zip | |
docs: do not call integer overflows as underflows
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/buffered.rs | 2 | ||||
| -rw-r--r-- | src/libstd/time/duration.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs index 6d3fbc9d268..8308ab48d9c 100644 --- a/src/libstd/io/buffered.rs +++ b/src/libstd/io/buffered.rs @@ -263,7 +263,7 @@ impl<R: Seek> Seek for BufReader<R> { /// See `std::io::Seek` for more details. /// /// Note: In the edge case where you're seeking with `SeekFrom::Current(n)` - /// where `n` minus the internal buffer length underflows an `i64`, two + /// where `n` minus the internal buffer length overflows an `i64`, two /// seeks will be performed instead of one. If the second seek returns /// `Err`, the underlying reader will be left at the same position it would /// have if you seeked to `SeekFrom::Current(0)`. diff --git a/src/libstd/time/duration.rs b/src/libstd/time/duration.rs index a74e8a21c42..15ddb62bab5 100644 --- a/src/libstd/time/duration.rs +++ b/src/libstd/time/duration.rs @@ -290,7 +290,7 @@ impl Duration { } /// Checked `Duration` subtraction. Computes `self - other`, returning [`None`] - /// if the result would be negative or if underflow occurred. + /// if the result would be negative or if overflow occurred. /// /// [`None`]: ../../std/option/enum.Option.html#variant.None /// |
