@@ -810,9 +810,9 @@ pub trait Read {
810810 default_read_exact ( self , buf)
811811 }
812812
813- /// Creates a "by reference" adaptor for this instance of `Read`.
813+ /// Creates a "by reference" adapter for this instance of `Read`.
814814 ///
815- /// The returned adaptor also implements `Read` and will simply borrow this
815+ /// The returned adapter also implements `Read` and will simply borrow this
816816 /// current reader.
817817 ///
818818 /// # Examples
@@ -889,7 +889,7 @@ pub trait Read {
889889 Bytes { inner : self }
890890 }
891891
892- /// Creates an adaptor which will chain this stream with another.
892+ /// Creates an adapter which will chain this stream with another.
893893 ///
894894 /// The returned `Read` instance will first read all bytes from this object
895895 /// until EOF is encountered. Afterwards the output is equivalent to the
@@ -927,7 +927,7 @@ pub trait Read {
927927 Chain { first : self , second : next, done_first : false }
928928 }
929929
930- /// Creates an adaptor which will read at most `limit` bytes from it.
930+ /// Creates an adapter which will read at most `limit` bytes from it.
931931 ///
932932 /// This function returns a new instance of `Read` which will read at most
933933 /// `limit` bytes, after which it will always return EOF ([`Ok(0)`]). Any
@@ -1326,7 +1326,7 @@ impl Initializer {
13261326/// * The [`write`] method will attempt to write some data into the object,
13271327/// returning how many bytes were successfully written.
13281328///
1329- /// * The [`flush`] method is useful for adaptors and explicit buffers
1329+ /// * The [`flush`] method is useful for adapters and explicit buffers
13301330/// themselves for ensuring that all buffered data has been pushed out to the
13311331/// 'true sink'.
13321332///
@@ -1646,12 +1646,12 @@ pub trait Write {
16461646 fn write_fmt ( & mut self , fmt : fmt:: Arguments < ' _ > ) -> Result < ( ) > {
16471647 // Create a shim which translates a Write to a fmt::Write and saves
16481648 // off I/O errors. instead of discarding them
1649- struct Adaptor < ' a , T : ?Sized + ' a > {
1649+ struct Adapter < ' a , T : ?Sized + ' a > {
16501650 inner : & ' a mut T ,
16511651 error : Result < ( ) > ,
16521652 }
16531653
1654- impl < T : Write + ?Sized > fmt:: Write for Adaptor < ' _ , T > {
1654+ impl < T : Write + ?Sized > fmt:: Write for Adapter < ' _ , T > {
16551655 fn write_str ( & mut self , s : & str ) -> fmt:: Result {
16561656 match self . inner . write_all ( s. as_bytes ( ) ) {
16571657 Ok ( ( ) ) => Ok ( ( ) ) ,
@@ -1663,7 +1663,7 @@ pub trait Write {
16631663 }
16641664 }
16651665
1666- let mut output = Adaptor { inner : self , error : Ok ( ( ) ) } ;
1666+ let mut output = Adapter { inner : self , error : Ok ( ( ) ) } ;
16671667 match fmt:: write ( & mut output, fmt) {
16681668 Ok ( ( ) ) => Ok ( ( ) ) ,
16691669 Err ( ..) => {
@@ -1677,9 +1677,9 @@ pub trait Write {
16771677 }
16781678 }
16791679
1680- /// Creates a "by reference" adaptor for this instance of `Write`.
1680+ /// Creates a "by reference" adapter for this instance of `Write`.
16811681 ///
1682- /// The returned adaptor also implements `Write` and will simply borrow this
1682+ /// The returned adapter also implements `Write` and will simply borrow this
16831683 /// current writer.
16841684 ///
16851685 /// # Examples
@@ -2263,7 +2263,7 @@ pub trait BufRead: Read {
22632263 }
22642264}
22652265
2266- /// Adaptor to chain together two readers.
2266+ /// Adapter to chain together two readers.
22672267///
22682268/// This struct is generally created by calling [`chain`] on a reader.
22692269/// Please see the documentation of [`chain`] for more details.
@@ -2414,7 +2414,7 @@ impl<T, U> SizeHint for Chain<T, U> {
24142414 }
24152415}
24162416
2417- /// Reader adaptor which limits the bytes read from an underlying reader.
2417+ /// Reader adapter which limits the bytes read from an underlying reader.
24182418///
24192419/// This struct is generally created by calling [`take`] on a reader.
24202420/// Please see the documentation of [`take`] for more details.
0 commit comments