@@ -631,14 +631,14 @@ pub trait BufRead: Read {
631
631
632
632
/// A `Write` adaptor which will write data to multiple locations.
633
633
///
634
- /// For more information, see `WriteExt ::broadcast`.
635
- #[ unstable( feature = "io" , reason = "awaiting stability of WriteExt ::broadcast" ) ]
634
+ /// For more information, see `Write ::broadcast`.
635
+ #[ unstable( feature = "io" , reason = "awaiting stability of Write ::broadcast" ) ]
636
636
pub struct Broadcast < T , U > {
637
637
first : T ,
638
638
second : U ,
639
639
}
640
640
641
- #[ unstable( feature = "io" , reason = "awaiting stability of WriteExt ::broadcast" ) ]
641
+ #[ unstable( feature = "io" , reason = "awaiting stability of Write ::broadcast" ) ]
642
642
impl < T : Write , U : Write > Write for Broadcast < T , U > {
643
643
fn write ( & mut self , data : & [ u8 ] ) -> Result < usize > {
644
644
let n = try!( self . first . write ( data) ) ;
@@ -654,7 +654,7 @@ impl<T: Write, U: Write> Write for Broadcast<T, U> {
654
654
655
655
/// Adaptor to chain together two instances of `Read`.
656
656
///
657
- /// For more information, see `ReadExt ::chain`.
657
+ /// For more information, see `Read ::chain`.
658
658
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
659
659
pub struct Chain < T , U > {
660
660
first : T ,
@@ -677,7 +677,7 @@ impl<T: Read, U: Read> Read for Chain<T, U> {
677
677
678
678
/// Reader adaptor which limits the bytes read from an underlying reader.
679
679
///
680
- /// For more information, see `ReadExt ::take`.
680
+ /// For more information, see `Read ::take`.
681
681
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
682
682
pub struct Take < T > {
683
683
inner : T ,
@@ -730,14 +730,14 @@ impl<T: BufRead> BufRead for Take<T> {
730
730
731
731
/// An adaptor which will emit all read data to a specified writer as well.
732
732
///
733
- /// For more information see `ReadExt ::tee`
734
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::tee" ) ]
733
+ /// For more information see `Read ::tee`
734
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::tee" ) ]
735
735
pub struct Tee < R , W > {
736
736
reader : R ,
737
737
writer : W ,
738
738
}
739
739
740
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::tee" ) ]
740
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::tee" ) ]
741
741
impl < R : Read , W : Write > Read for Tee < R , W > {
742
742
fn read ( & mut self , buf : & mut [ u8 ] ) -> Result < usize > {
743
743
let n = try!( self . reader . read ( buf) ) ;
@@ -749,7 +749,7 @@ impl<R: Read, W: Write> Read for Tee<R, W> {
749
749
750
750
/// A bridge from implementations of `Read` to an `Iterator` of `u8`.
751
751
///
752
- /// See `ReadExt ::bytes` for more information.
752
+ /// See `Read ::bytes` for more information.
753
753
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
754
754
pub struct Bytes < R > {
755
755
inner : R ,
@@ -771,16 +771,16 @@ impl<R: Read> Iterator for Bytes<R> {
771
771
772
772
/// A bridge from implementations of `Read` to an `Iterator` of `char`.
773
773
///
774
- /// See `ReadExt ::chars` for more information.
775
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::chars" ) ]
774
+ /// See `Read ::chars` for more information.
775
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::chars" ) ]
776
776
pub struct Chars < R > {
777
777
inner : R ,
778
778
}
779
779
780
780
/// An enumeration of possible errors that can be generated from the `Chars`
781
781
/// adapter.
782
782
#[ derive( PartialEq , Clone , Debug ) ]
783
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::chars" ) ]
783
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::chars" ) ]
784
784
pub enum CharsError {
785
785
/// Variant representing that the underlying stream was read successfully
786
786
/// but it did not contain valid utf8 data.
@@ -790,7 +790,7 @@ pub enum CharsError {
790
790
Other ( Error ) ,
791
791
}
792
792
793
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::chars" ) ]
793
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::chars" ) ]
794
794
impl < R : Read > Iterator for Chars < R > {
795
795
type Item = result:: Result < char , CharsError > ;
796
796
@@ -822,7 +822,7 @@ impl<R: Read> Iterator for Chars<R> {
822
822
}
823
823
}
824
824
825
- #[ unstable( feature = "io" , reason = "awaiting stability of ReadExt ::chars" ) ]
825
+ #[ unstable( feature = "io" , reason = "awaiting stability of Read ::chars" ) ]
826
826
impl std_error:: Error for CharsError {
827
827
fn description ( & self ) -> & str {
828
828
match * self {
@@ -838,7 +838,7 @@ impl std_error::Error for CharsError {
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 fmt:: Display for CharsError {
843
843
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
844
844
match * self {
0 commit comments