We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e493be2 commit 3868e79Copy full SHA for 3868e79
src/lib.rs
@@ -197,7 +197,8 @@ impl AsciiCast<Ascii> for char {
197
#[experimental = "may be replaced by generic conversion traits"]
198
pub trait OwnedAsciiCast<T: ?Sized, U = Self> : Sized
199
where T: BorrowFrom<Self> + AsciiExt<U> {
200
- /// Take ownership and cast to an ascii vector. Return Err(()) on non-ASCII input.
+ /// Take ownership and cast to an ascii vector. On non-ASCII input return ownership of data
201
+ /// that was attempted to cast to ascii in `Err(Self)`.
202
#[inline]
203
fn into_ascii(self) -> Result<Vec<Ascii>, Self> {
204
if {
0 commit comments