about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-10-06 08:35:44 -0700
committerGitHub <noreply@github.com>2016-10-06 08:35:44 -0700
commit89aebdbce8c92617be0cebbd86a14289f2419b79 (patch)
treef223fa1b72d4685258f681b218c09154d7d22155 /src/libstd
parent2c8c0defab0885e5c8c50b0841aa860b049ecb7a (diff)
parent8d06332a27b020f5252238946fa9dccc3843d52a (diff)
downloadrust-89aebdbce8c92617be0cebbd86a14289f2419b79.tar.gz
rust-89aebdbce8c92617be0cebbd86a14289f2419b79.zip
Rollup merge of #36977 - Razican:bufreader_typo_fix, r=alexcrichton
Fixed small typo in `BufRead` comments

`BufRead` comments, in the `Seek` trait	implementation, was talking about allocating 8 *ebibytes*. It was a typo, the correct unit is *exbibytes*, since *ebibytes* don't even exist.	The calculation is correct, though.
Diffstat (limited to 'src/libstd')
-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 21a0cc1fb3b..93b2d34e27f 100644
--- a/src/libstd/io/buffered.rs
+++ b/src/libstd/io/buffered.rs
@@ -231,7 +231,7 @@ impl<R: Seek> Seek for BufReader<R> {
         if let SeekFrom::Current(n) = pos {
             let remainder = (self.cap - self.pos) as i64;
             // it should be safe to assume that remainder fits within an i64 as the alternative
-            // means we managed to allocate 8 ebibytes and that's absurd.
+            // means we managed to allocate 8 exbibytes and that's absurd.
             // But it's not out of the realm of possibility for some weird underlying reader to
             // support seeking by i64::min_value() so we need to handle underflow when subtracting
             // remainder.