about summary refs log tree commit diff
diff options
context:
space:
mode:
authortgor <tgorshkov@concerteza.ru>2016-01-29 02:13:34 +0300
committertgor <tgorshkov@concerteza.ru>2016-01-29 02:13:34 +0300
commit77cdeb043766502618891be1973e9d70be29ffe3 (patch)
treeac71d50b6b043df16fc0727cdf6f8ed1b331610c
parent552bf75e7d689c42febc7798d31ae58d614418f9 (diff)
downloadrust-77cdeb043766502618891be1973e9d70be29ffe3.tar.gz
rust-77cdeb043766502618891be1973e9d70be29ffe3.zip
std::string::String.from_utf16 doc fix
-rw-r--r--src/libcollections/string.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index d9cbc4488fc..97c12043e76 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -641,7 +641,7 @@ impl String {
         Cow::Owned(res)
     }
 
-    /// Decode a UTF-16 encoded vector `v` into a `String`, returning `None`
+    /// Decode a UTF-16 encoded vector `v` into a `String`, returning `Err`
     /// if `v` contains any invalid data.
     ///
     /// # Examples