diff --git a/src/lib.rs b/src/lib.rs index 7baa7231..69221ad7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1925,7 +1925,7 @@ pub trait Parser<'src, I: Input<'src>, O, E: ParserExtra<'src, I> = extra::Defau /// multi_step_val.parse("100 2").into_result(), /// Err(vec![ /// Rich::::custom((0..3).into(), "100 must be 256 or higher"), - /// as LabelError<&str, _>>::expected_found([TextExpected::Identifier], Some(MaybeRef::Val('2')), (4..5).into()), + /// as LabelError<&str, _>>::expected_found([TextExpected::::IdentifierPart], Some(MaybeRef::Val('2')), (4..5).into()), /// ]) /// ); /// diff --git a/src/text.rs b/src/text.rs index 754de487..2407523d 100644 --- a/src/text.rs +++ b/src/text.rs @@ -11,6 +11,8 @@ use alloc::string::ToString; use super::*; +use alloc::string::ToString; + /// A trait implemented by textual character types (currently, [`u8`] and [`char`]). /// /// This trait is currently sealed to minimize the impact of breaking changes. If you find a type that you think should