Docs
This commit is contained in:
@@ -173,7 +173,7 @@ impl TokenType {
|
||||
_ => panic!("Expected {}, got {self}", Self::ident(""))
|
||||
}
|
||||
}
|
||||
pub fn ident(s: &str) -> Self {
|
||||
pub fn ident(s: impl ToString) -> Self {
|
||||
Self::Ident(Ident(s.to_string()))
|
||||
}
|
||||
pub fn number(val: usize, base: u8, signed: bool) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user