mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Rename parse_into to parse_ident
This commit is contained in:
parent
9c8e316135
commit
0c8f1633e1
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ impl<'a> Ident<'a> {
|
|||
/// Sometimes we may want to check for those later in the process, and give
|
||||
/// more contextually-aware error messages than "unexpected `if`" or the like.
|
||||
#[inline(always)]
|
||||
pub fn parse_into<'a, I>(
|
||||
pub fn parse_ident<'a, I>(
|
||||
arena: &'a Bump,
|
||||
chars: &mut I,
|
||||
state: State<'a>,
|
||||
|
@ -310,7 +310,7 @@ where
|
|||
pub fn ident<'a>() -> impl Parser<'a, Ident<'a>> {
|
||||
move |arena: &'a Bump, state: State<'a>| {
|
||||
// Discard next_char; we don't need it.
|
||||
let ((string, _), state) = parse_into(arena, &mut state.input.chars(), state)?;
|
||||
let ((string, _), state) = parse_ident(arena, &mut state.input.chars(), state)?;
|
||||
|
||||
Ok((string, state))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue