fixed typos, added typos checking to CI

This commit is contained in:
Anton-4 2021-06-05 20:02:54 +02:00
parent 960a4fddc5
commit 314503cf7f
43 changed files with 114 additions and 101 deletions

View file

@ -13,7 +13,7 @@ use roc_types::types::Type::{self, *};
#[inline(always)]
pub fn int_literal(
num_var: Variable,
percision_var: Variable,
precision_var: Variable,
expected: Expected<Type>,
region: Region,
) -> Constraint {
@ -25,7 +25,7 @@ pub fn int_literal(
And(vec![
Eq(
num_type.clone(),
ForReason(reason, num_int(Type::Variable(percision_var)), region),
ForReason(reason, num_int(Type::Variable(precision_var)), region),
Category::Int,
region,
),

View file

@ -96,7 +96,7 @@ pub fn constrain_expr(
expected: Expected<Type>,
) -> Constraint {
match expr {
Int(var, percision, _) => int_literal(*var, *percision, expected, region),
Int(var, precision, _) => int_literal(*var, *precision, expected, region),
Num(var, _) => exists(
vec![*var],
Eq(
@ -106,7 +106,7 @@ pub fn constrain_expr(
region,
),
),
Float(var, percision, _) => float_literal(*var, *percision, expected, region),
Float(var, precision, _) => float_literal(*var, *precision, expected, region),
EmptyRecord => constrain_empty_record(region, expected),
Expr::Record { record_var, fields } => {
if fields.is_empty() {

View file

@ -146,7 +146,7 @@ pub fn pre_constrain_imports(
// Translate referenced symbols into constraints. We do this on the main
// thread because we need exclusive access to the exposed_types map, in order
// to get the necessary constraint info for any aliases we imported. We also
// resolve builtin types now, so we can use a refernce to stdlib instead of
// resolve builtin types now, so we can use a reference to stdlib instead of
// having to either clone it or recreate it from scratch on the other thread.
for &symbol in references.iter() {
let module_id = symbol.module_id();