Rename remaining Failures to Panic

This commit is contained in:
Subhash Bhushan
2014-11-08 21:17:51 +05:30
parent 394269d16e
commit bc9de771d5
20 changed files with 57 additions and 41 deletions

View File

@@ -216,7 +216,10 @@ pub trait OwnedAsciiCast {
/// Check if convertible to ascii
fn is_ascii(&self) -> bool;
/// Take ownership and cast to an ascii vector. Fail on non-ASCII input.
/// Take ownership and cast to an ascii vector.
/// # Panics
///
/// Panic on non-ASCII input.
#[inline]
fn into_ascii(self) -> Vec<Ascii> {
assert!(self.is_ascii());