mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-05 01:20:20 +00:00
fixed typos, added typos checking to CI
This commit is contained in:
parent
960a4fddc5
commit
314503cf7f
43 changed files with 114 additions and 101 deletions
|
@ -1973,7 +1973,7 @@ fn to_type_report<'a>(
|
|||
let region = Region::from_row_col(*row, *col);
|
||||
|
||||
let doc = alloc.stack(vec![
|
||||
alloc.reflow(r"I just started parsing a function argument type, but I encounterd two commas in a row:"),
|
||||
alloc.reflow(r"I just started parsing a function argument type, but I encountered two commas in a row:"),
|
||||
alloc.region_with_subregion(surroundings, region),
|
||||
alloc.concat(vec![alloc.reflow("Try removing one of them.")]),
|
||||
]);
|
||||
|
|
|
@ -1046,7 +1046,7 @@ fn to_pattern_report<'b>(
|
|||
let doc = alloc.stack(vec![
|
||||
alloc.text("This pattern is being used in an unexpected way:"),
|
||||
alloc.region(expr_region),
|
||||
pattern_type_comparision(
|
||||
pattern_type_comparison(
|
||||
alloc,
|
||||
found,
|
||||
expected_type,
|
||||
|
@ -1078,7 +1078,7 @@ fn to_pattern_report<'b>(
|
|||
.append(name.clone())
|
||||
.append(alloc.text(" is weird:")),
|
||||
alloc.region(region),
|
||||
pattern_type_comparision(
|
||||
pattern_type_comparison(
|
||||
alloc,
|
||||
found,
|
||||
expected_type,
|
||||
|
@ -1112,7 +1112,7 @@ fn to_pattern_report<'b>(
|
|||
.append(alloc.keyword("when"))
|
||||
.append(alloc.text(" is causing a mismatch:")),
|
||||
alloc.region(region),
|
||||
pattern_type_comparision(
|
||||
pattern_type_comparison(
|
||||
alloc,
|
||||
found,
|
||||
expected_type,
|
||||
|
@ -1144,7 +1144,7 @@ fn to_pattern_report<'b>(
|
|||
.append(alloc.keyword("when"))
|
||||
.append(alloc.text(" does not match the previous ones:")),
|
||||
alloc.region(region),
|
||||
pattern_type_comparision(
|
||||
pattern_type_comparison(
|
||||
alloc,
|
||||
found,
|
||||
expected_type,
|
||||
|
@ -1175,7 +1175,7 @@ fn to_pattern_report<'b>(
|
|||
}
|
||||
}
|
||||
|
||||
fn pattern_type_comparision<'b>(
|
||||
fn pattern_type_comparison<'b>(
|
||||
alloc: &'b RocDocAllocator<'b>,
|
||||
actual: ErrorType,
|
||||
expected: ErrorType,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue