Fix a spelling mistake; how was this ever passing?

This commit is contained in:
Chelsea Troy 2021-12-01 18:41:37 -06:00
parent 2eefe9ff6d
commit f680ee3c24
5 changed files with 8 additions and 8 deletions

View file

@ -234,7 +234,7 @@ pub fn to_pattern2<'a>(
Pattern2::CharacterLiteral(char)
} else {
// multiple chars is found
let problem = MalformedPatternProblem::MulitpleCharsInSingleQuote;
let problem = MalformedPatternProblem::MultipleCharsInSingleQuote;
malformed_pattern(env, problem, region)
}
} else {

View file

@ -312,7 +312,7 @@ pub fn canonicalize_expr<'a>(
(Expr::SingleQuote(char), Output::default())
} else {
// multiple chars is found
let error = roc_problem::can::RuntimeError::MulitpleCharsInSingleQuote(region);
let error = roc_problem::can::RuntimeError::MultipleCharsInSingleQuote(region);
let answer = Expr::RuntimeError(error.clone());
(answer, Output::default())

View file

@ -246,7 +246,7 @@ pub fn canonicalize_pattern<'a>(
Pattern::SingleQuote(char)
} else {
// multiple chars is found
let problem = MalformedPatternProblem::MulitpleCharsInSingleQuote;
let problem = MalformedPatternProblem::MultipleCharsInSingleQuote;
malformed_pattern(env, problem, region)
}
} else {

View file

@ -177,7 +177,7 @@ pub enum RuntimeError {
/// where ''
EmptySingleQuote(Region),
/// where 'aa'
MulitpleCharsInSingleQuote(Region),
MultipleCharsInSingleQuote(Region),
}
#[derive(Clone, Copy, Debug, PartialEq)]
@ -189,5 +189,5 @@ pub enum MalformedPatternProblem {
QualifiedIdentifier,
BadIdent(roc_parse::ident::BadIdent),
EmptySingleQuote,
MulitpleCharsInSingleQuote,
MultipleCharsInSingleQuote,
}

View file

@ -845,14 +845,14 @@ fn pretty_runtime_error<'b>(
Unknown => " ",
QualifiedIdentifier => " qualified ",
EmptySingleQuote => " empty character literal ",
MulitpleCharsInSingleQuote => " overfull literal ",
MultipleCharsInSingleQuote => " overfull literal ",
};
let tip = match problem {
MalformedInt | MalformedFloat | MalformedBase(_) => alloc
.tip()
.append(alloc.reflow("Learn more about number literals at TODO")),
EmptySingleQuote | MulitpleCharsInSingleQuote | Unknown | BadIdent(_) => {
EmptySingleQuote | MultipleCharsInSingleQuote | Unknown | BadIdent(_) => {
alloc.nil()
}
QualifiedIdentifier => alloc.tip().append(
@ -1160,7 +1160,7 @@ fn pretty_runtime_error<'b>(
title = SYNTAX_PROBLEM;
}
RuntimeError::MulitpleCharsInSingleQuote(region) => {
RuntimeError::MultipleCharsInSingleQuote(region) => {
let tip = alloc
.tip()
.append(alloc.reflow("Learn more about character literals at TODO"));