about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorTrevor Spiteri <tspiteri@ieee.org>2017-12-21 02:39:01 +0100
committerTrevor Spiteri <tspiteri@ieee.org>2017-12-21 02:39:01 +0100
commit9d6bd0536aed290f4fe80b42820fcf2463d2f8b3 (patch)
tree7ad43434c283c05405836e8eea77b2d206a3a39f /src/libstd/io
parent7eb64b86ce44cc1828dd176a8b981e37ea08fc38 (diff)
downloadrust-9d6bd0536aed290f4fe80b42820fcf2463d2f8b3.tar.gz
rust-9d6bd0536aed290f4fe80b42820fcf2463d2f8b3.zip
docs: do not call integer overflows as underflows
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/buffered.rs2
1 files changed, 1 insertions, 1 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)`.