Skip to content

Commit

Permalink
fix: should return true for empty strings as well
Browse files Browse the repository at this point in the history
  • Loading branch information
raghav-rama committed May 22, 2024
1 parent 34ec2e2 commit f8747ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/custom_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn string(string: &str) -> bool {
}
}

state.cursor > 0 && state.cursor == state.characters.len()
state.cursor == state.characters.len()
}
/**
* To test whether a str encodes a member of the Star language, we call the string function.
Expand Down

0 comments on commit f8747ed

Please sign in to comment.