Skip to content

Commit 8b6d01b

Browse files
Subhash BhushanSimonSapin
Subhash Bhushan
authored andcommitted
Rename remaining Failures to Panic
1 parent 4e88d90 commit 8b6d01b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libstd/ascii.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,10 @@ pub trait OwnedAsciiCast {
216216
/// Check if convertible to ascii
217217
fn is_ascii(&self) -> bool;
218218

219-
/// Take ownership and cast to an ascii vector. Fail on non-ASCII input.
219+
/// Take ownership and cast to an ascii vector.
220+
/// # Panics
221+
///
222+
/// Panic on non-ASCII input.
220223
#[inline]
221224
fn into_ascii(self) -> Vec<Ascii> {
222225
assert!(self.is_ascii());

0 commit comments

Comments
 (0)