Skip to content

Commit 227d304

Browse files
author
Ulrik Sverdrup
committed
std: Update docs for removal of ReadExt, WriteExt
1 parent ed81038 commit 227d304

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/libstd/io/mod.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -647,14 +647,14 @@ pub trait BufRead: Read {
647647

648648
/// A `Write` adaptor which will write data to multiple locations.
649649
///
650-
/// For more information, see `WriteExt::broadcast`.
651-
#[unstable(feature = "io", reason = "awaiting stability of WriteExt::broadcast")]
650+
/// For more information, see `Write::broadcast`.
651+
#[unstable(feature = "io", reason = "awaiting stability of Write::broadcast")]
652652
pub struct Broadcast<T, U> {
653653
first: T,
654654
second: U,
655655
}
656656

657-
#[unstable(feature = "io", reason = "awaiting stability of WriteExt::broadcast")]
657+
#[unstable(feature = "io", reason = "awaiting stability of Write::broadcast")]
658658
impl<T: Write, U: Write> Write for Broadcast<T, U> {
659659
fn write(&mut self, data: &[u8]) -> Result<usize> {
660660
let n = try!(self.first.write(data));
@@ -670,7 +670,7 @@ impl<T: Write, U: Write> Write for Broadcast<T, U> {
670670

671671
/// Adaptor to chain together two instances of `Read`.
672672
///
673-
/// For more information, see `ReadExt::chain`.
673+
/// For more information, see `Read::chain`.
674674
#[stable(feature = "rust1", since = "1.0.0")]
675675
pub struct Chain<T, U> {
676676
first: T,
@@ -693,7 +693,7 @@ impl<T: Read, U: Read> Read for Chain<T, U> {
693693

694694
/// Reader adaptor which limits the bytes read from an underlying reader.
695695
///
696-
/// For more information, see `ReadExt::take`.
696+
/// For more information, see `Read::take`.
697697
#[stable(feature = "rust1", since = "1.0.0")]
698698
pub struct Take<T> {
699699
inner: T,
@@ -746,14 +746,14 @@ impl<T: BufRead> BufRead for Take<T> {
746746

747747
/// An adaptor which will emit all read data to a specified writer as well.
748748
///
749-
/// For more information see `ReadExt::tee`
750-
#[unstable(feature = "io", reason = "awaiting stability of ReadExt::tee")]
749+
/// For more information see `Read::tee`
750+
#[unstable(feature = "io", reason = "awaiting stability of Read::tee")]
751751
pub struct Tee<R, W> {
752752
reader: R,
753753
writer: W,
754754
}
755755

756-
#[unstable(feature = "io", reason = "awaiting stability of ReadExt::tee")]
756+
#[unstable(feature = "io", reason = "awaiting stability of Read::tee")]
757757
impl<R: Read, W: Write> Read for Tee<R, W> {
758758
fn read(&mut self, buf: &mut [u8]) -> Result<usize> {
759759
let n = try!(self.reader.read(buf));
@@ -765,7 +765,7 @@ impl<R: Read, W: Write> Read for Tee<R, W> {
765765

766766
/// A bridge from implementations of `Read` to an `Iterator` of `u8`.
767767
///
768-
/// See `ReadExt::bytes` for more information.
768+
/// See `Read::bytes` for more information.
769769
#[stable(feature = "rust1", since = "1.0.0")]
770770
pub struct Bytes<R> {
771771
inner: R,
@@ -787,16 +787,16 @@ impl<R: Read> Iterator for Bytes<R> {
787787

788788
/// A bridge from implementations of `Read` to an `Iterator` of `char`.
789789
///
790-
/// See `ReadExt::chars` for more information.
791-
#[unstable(feature = "io", reason = "awaiting stability of ReadExt::chars")]
790+
/// See `Read::chars` for more information.
791+
#[unstable(feature = "io", reason = "awaiting stability of Read::chars")]
792792
pub struct Chars<R> {
793793
inner: R,
794794
}
795795

796796
/// An enumeration of possible errors that can be generated from the `Chars`
797797
/// adapter.
798798
#[derive(PartialEq, Clone, Debug)]
799-
#[unstable(feature = "io", reason = "awaiting stability of ReadExt::chars")]
799+
#[unstable(feature = "io", reason = "awaiting stability of Read::chars")]
800800
pub enum CharsError {
801801
/// Variant representing that the underlying stream was read successfully
802802
/// but it did not contain valid utf8 data.
@@ -806,7 +806,7 @@ pub enum CharsError {
806806
Other(Error),
807807
}
808808

809-
#[unstable(feature = "io", reason = "awaiting stability of ReadExt::chars")]
809+
#[unstable(feature = "io", reason = "awaiting stability of Read::chars")]
810810
impl<R: Read> Iterator for Chars<R> {
811811
type Item = result::Result<char, CharsError>;
812812

@@ -838,7 +838,7 @@ impl<R: Read> Iterator for Chars<R> {
838838
}
839839
}
840840

841-
#[unstable(feature = "io", reason = "awaiting stability of ReadExt::chars")]
841+
#[unstable(feature = "io", reason = "awaiting stability of Read::chars")]
842842
impl std_error::Error for CharsError {
843843
fn description(&self) -> &str {
844844
match *self {
@@ -854,7 +854,7 @@ impl std_error::Error for CharsError {
854854
}
855855
}
856856

857-
#[unstable(feature = "io", reason = "awaiting stability of ReadExt::chars")]
857+
#[unstable(feature = "io", reason = "awaiting stability of Read::chars")]
858858
impl fmt::Display for CharsError {
859859
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
860860
match *self {

src/libstd/io/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! ```
1919
//!
2020
//! This module contains reexports of many core I/O traits such as `Read`,
21-
//! `Write`, `ReadExt`, and `WriteExt`. Structures and functions are not
21+
//! `Write` and `BufRead`. Structures and functions are not
2222
//! contained in this module.
2323
2424
#![stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)