mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
fix top level def
This commit is contained in:
parent
851f472167
commit
e83cb0d027
6 changed files with 31 additions and 28 deletions
|
@ -280,7 +280,7 @@ pub fn spaces_exactly<'a>(spaces_expected: u16) -> impl Parser<'a, ()> {
|
|||
|
||||
Err(FailReason::BadUtf8) => {
|
||||
// If we hit an invalid UTF-8 character, bail out immediately.
|
||||
let progress = Progress::from_bool(spaces_seen != 0);
|
||||
let progress = Progress::progress_when(spaces_seen != 0);
|
||||
return state.fail(progress, FailReason::BadUtf8);
|
||||
}
|
||||
Err(_) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue