mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Lints
This commit is contained in:
parent
906f2349b8
commit
32a59b7e72
3 changed files with 7 additions and 5 deletions
|
@ -154,7 +154,7 @@ fn parse_queries(src: &str) -> Vec<TypeQuery> {
|
|||
for (i, line) in src.lines().enumerate() {
|
||||
// If this is a query line, it should start with a comment somewhere before the query
|
||||
// lines.
|
||||
let comment_column = match line.find("#") {
|
||||
let comment_column = match line.find('#') {
|
||||
Some(i) => i as _,
|
||||
None => {
|
||||
consecutive_query_lines = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue