File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ pub struct Utf16Encoder<I> {
525
525
}
526
526
527
527
impl < I > Utf16Encoder < I > {
528
- /// Create an UTF-16 encoder from any `char` iterator.
528
+ /// Create a UTF-16 encoder from any `char` iterator.
529
529
pub fn new ( chars : I ) -> Utf16Encoder < I > where I : Iterator < Item =char > {
530
530
Utf16Encoder { chars : chars, extra : 0 }
531
531
}
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ pub trait Read {
236
236
237
237
/// Transforms this `Read` instance to an `Iterator` over `char`s.
238
238
///
239
- /// This adaptor will attempt to interpret this reader as an UTF-8 encoded
239
+ /// This adaptor will attempt to interpret this reader as a UTF-8 encoded
240
240
/// sequence of characters. The returned iterator will return `None` once
241
241
/// EOF is reached for this reader. Otherwise each element yielded will be a
242
242
/// `Result<char, E>` where `E` may contain information about what I/O error
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ impl Wtf8Buf {
161
161
Wtf8Buf { bytes : Vec :: with_capacity ( n) }
162
162
}
163
163
164
- /// Creates a WTF-8 string from an UTF-8 `String`.
164
+ /// Creates a WTF-8 string from a UTF-8 `String`.
165
165
///
166
166
/// This takes ownership of the `String` and does not copy.
167
167
///
@@ -171,7 +171,7 @@ impl Wtf8Buf {
171
171
Wtf8Buf { bytes : string. into_bytes ( ) }
172
172
}
173
173
174
- /// Creates a WTF-8 string from an UTF-8 `&str` slice.
174
+ /// Creates a WTF-8 string from a UTF-8 `&str` slice.
175
175
///
176
176
/// This copies the content of the slice.
177
177
///
@@ -245,7 +245,7 @@ impl Wtf8Buf {
245
245
self . bytes . capacity ( )
246
246
}
247
247
248
- /// Append an UTF-8 slice at the end of the string.
248
+ /// Append a UTF-8 slice at the end of the string.
249
249
#[ inline]
250
250
pub fn push_str ( & mut self , other : & str ) {
251
251
self . bytes . push_all ( other. as_bytes ( ) )
@@ -527,7 +527,7 @@ impl Wtf8 {
527
527
}
528
528
529
529
/// Lossily converts the string to UTF-8.
530
- /// Returns an UTF-8 `&str` slice if the contents are well-formed in UTF-8.
530
+ /// Returns a UTF-8 `&str` slice if the contents are well-formed in UTF-8.
531
531
///
532
532
/// Surrogates are replaced with `"\u{FFFD}"` (the replacement character “�”).
533
533
///
You can’t perform that action at this time.
0 commit comments