@@ -647,14 +647,14 @@ pub trait BufRead: Read {
647
647
648
648
/// A `Write` adaptor which will write data to multiple locations.
649
649
///
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" ) ]
652
652
pub struct Broadcast < T , U > {
653
653
first : T ,
654
654
second : U ,
655
655
}
656
656
657
- #[ unstable( feature = "io" , reason = "awaiting stability of WriteExt ::broadcast" ) ]
657
+ #[ unstable( feature = "io" , reason = "awaiting stability of Write ::broadcast" ) ]
658
658
impl < T : Write , U : Write > Write for Broadcast < T , U > {
659
659
fn write ( & mut self , data : & [ u8 ] ) -> Result < usize > {
660
660
let n = try!( self . first . write ( data) ) ;
@@ -670,7 +670,7 @@ impl<T: Write, U: Write> Write for Broadcast<T, U> {
670
670
671
671
/// Adaptor to chain together two instances of `Read`.
672
672
///
673
- /// For more information, see `ReadExt ::chain`.
673
+ /// For more information, see `Read ::chain`.
674
674
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
675
675
pub struct Chain < T , U > {
676
676
first : T ,
@@ -693,7 +693,7 @@ impl<T: Read, U: Read> Read for Chain<T, U> {
693
693
694
694
/// Reader adaptor which limits the bytes read from an underlying reader.
695
695
///
696
- /// For more information, see `ReadExt ::take`.
696
+ /// For more information, see `Read ::take`.
697
697
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
698
698
pub struct Take < T > {
699
699
inner : T ,
@@ -746,14 +746,14 @@ impl<T: BufRead> BufRead for Take<T> {
746
746
747
747
/// An adaptor which will emit all read data to a specified writer as well.
748
748
///
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" ) ]
751
751
pub struct Tee < R , W > {
752
752
reader : R ,
753
753
writer : W ,
754
754
}
755
755
756
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::tee" ) ]
756
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::tee" ) ]
757
757
impl < R : Read , W : Write > Read for Tee < R , W > {
758
758
fn read ( & mut self , buf : & mut [ u8 ] ) -> Result < usize > {
759
759
let n = try!( self . reader . read ( buf) ) ;
@@ -765,7 +765,7 @@ impl<R: Read, W: Write> Read for Tee<R, W> {
765
765
766
766
/// A bridge from implementations of `Read` to an `Iterator` of `u8`.
767
767
///
768
- /// See `ReadExt ::bytes` for more information.
768
+ /// See `Read ::bytes` for more information.
769
769
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
770
770
pub struct Bytes < R > {
771
771
inner : R ,
@@ -787,16 +787,16 @@ impl<R: Read> Iterator for Bytes<R> {
787
787
788
788
/// A bridge from implementations of `Read` to an `Iterator` of `char`.
789
789
///
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" ) ]
792
792
pub struct Chars < R > {
793
793
inner : R ,
794
794
}
795
795
796
796
/// An enumeration of possible errors that can be generated from the `Chars`
797
797
/// adapter.
798
798
#[ derive( PartialEq , Clone , Debug ) ]
799
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::chars" ) ]
799
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::chars" ) ]
800
800
pub enum CharsError {
801
801
/// Variant representing that the underlying stream was read successfully
802
802
/// but it did not contain valid utf8 data.
@@ -806,7 +806,7 @@ pub enum CharsError {
806
806
Other ( Error ) ,
807
807
}
808
808
809
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::chars" ) ]
809
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::chars" ) ]
810
810
impl < R : Read > Iterator for Chars < R > {
811
811
type Item = result:: Result < char , CharsError > ;
812
812
@@ -838,7 +838,7 @@ impl<R: Read> Iterator for Chars<R> {
838
838
}
839
839
}
840
840
841
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::chars" ) ]
841
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::chars" ) ]
842
842
impl std_error:: Error for CharsError {
843
843
fn description ( & self ) -> & str {
844
844
match * self {
@@ -854,7 +854,7 @@ impl std_error::Error for CharsError {
854
854
}
855
855
}
856
856
857
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::chars" ) ]
857
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::chars" ) ]
858
858
impl fmt:: Display for CharsError {
859
859
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
860
860
match * self {
0 commit comments