Skip to content

Commit 3868e79

Browse files
author
Thomas Bahn
committed
Update documentation to reflect the current code
1 parent e493be2 commit 3868e79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ impl AsciiCast<Ascii> for char {
197197
#[experimental = "may be replaced by generic conversion traits"]
198198
pub trait OwnedAsciiCast<T: ?Sized, U = Self> : Sized
199199
where T: BorrowFrom<Self> + AsciiExt<U> {
200-
/// Take ownership and cast to an ascii vector. Return Err(()) on non-ASCII input.
200+
/// 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)`.
201202
#[inline]
202203
fn into_ascii(self) -> Result<Vec<Ascii>, Self> {
203204
if {

0 commit comments

Comments
 (0)