File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -892,14 +892,11 @@ impl ClassUnicode {
892
892
/// this class consists of the range `a-z`, then applying case folding will
893
893
/// result in the class containing both the ranges `a-z` and `A-Z`.
894
894
///
895
- /// # Panics
895
+ /// # Error
896
896
///
897
- /// This routine panics when the case mapping data necessary for this
898
- /// routine to complete is unavailable. This occurs when the `unicode-case`
899
- /// feature is not enabled.
900
- ///
901
- /// Callers should prefer using `try_case_fold_simple` instead, which will
902
- /// return an error instead of panicking.
897
+ /// This routine returns an error when the case mapping data necessary
898
+ /// for this routine to complete is unavailable. This occurs when the
899
+ /// `unicode-case` feature is not enabled.
903
900
pub fn try_case_fold_simple (
904
901
& mut self ,
905
902
) -> result:: Result < ( ) , CaseFoldError > {
You can’t perform that action at this time.
0 commit comments