From 554da45762ff11def1d7ef85c68d4ed86550aa40 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Thu, 30 Apr 2015 21:38:01 -0400 Subject: [PATCH] Replaces instanced of 'an UTF' with 'a UTF' Even spelled out, one would say 'a Universal Character Set' --- src/librustc_unicode/u_str.rs | 2 +- src/libstd/io/mod.rs | 2 +- src/libstd/sys/common/wtf8.rs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/librustc_unicode/u_str.rs b/src/librustc_unicode/u_str.rs index 898844e3bf12b..f4c85f18a7e67 100644 --- a/src/librustc_unicode/u_str.rs +++ b/src/librustc_unicode/u_str.rs @@ -525,7 +525,7 @@ pub struct Utf16Encoder { } impl Utf16Encoder { - /// Create an UTF-16 encoder from any `char` iterator. + /// Create a UTF-16 encoder from any `char` iterator. pub fn new(chars: I) -> Utf16Encoder where I: Iterator { Utf16Encoder { chars: chars, extra: 0 } } diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 561c37ad950b0..9089b417fcb99 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -236,7 +236,7 @@ pub trait Read { /// Transforms this `Read` instance to an `Iterator` over `char`s. /// - /// This adaptor will attempt to interpret this reader as an UTF-8 encoded + /// This adaptor will attempt to interpret this reader as a UTF-8 encoded /// sequence of characters. The returned iterator will return `None` once /// EOF is reached for this reader. Otherwise each element yielded will be a /// `Result` where `E` may contain information about what I/O error diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index 56a952e6a7ef6..cb9239ed7ba57 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -161,7 +161,7 @@ impl Wtf8Buf { Wtf8Buf { bytes: Vec::with_capacity(n) } } - /// Creates a WTF-8 string from an UTF-8 `String`. + /// Creates a WTF-8 string from a UTF-8 `String`. /// /// This takes ownership of the `String` and does not copy. /// @@ -171,7 +171,7 @@ impl Wtf8Buf { Wtf8Buf { bytes: string.into_bytes() } } - /// Creates a WTF-8 string from an UTF-8 `&str` slice. + /// Creates a WTF-8 string from a UTF-8 `&str` slice. /// /// This copies the content of the slice. /// @@ -245,7 +245,7 @@ impl Wtf8Buf { self.bytes.capacity() } - /// Append an UTF-8 slice at the end of the string. + /// Append a UTF-8 slice at the end of the string. #[inline] pub fn push_str(&mut self, other: &str) { self.bytes.push_all(other.as_bytes()) @@ -527,7 +527,7 @@ impl Wtf8 { } /// Lossily converts the string to UTF-8. - /// Returns an UTF-8 `&str` slice if the contents are well-formed in UTF-8. + /// Returns a UTF-8 `&str` slice if the contents are well-formed in UTF-8. /// /// Surrogates are replaced with `"\u{FFFD}"` (the replacement character “�”). ///