checker: fix typo in check_types.v

pull/5505/head
joe-conigliaro 2020-06-26 15:05:07 +10:00
parent 5bd6d3acb5
commit 202d479bad
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ pub fn (c &Checker) string_inter_lit(mut node ast.StringInterLiteral) table.Type
c.error('precision specification only valid for float types', node.fmt_poss[i])
}
if node.pluss[i] && !typ.is_number() {
c.error('plus prefix only allowd for numbers', node.fmt_poss[i])
c.error('plus prefix only allowed for numbers', node.fmt_poss[i])
}
if (typ.is_unsigned() && fmt !in [`u`, `x`, `X`, `o`, `c`]) ||
(typ.is_signed() && fmt !in [`d`, `x`, `X`, `o`, `c`]) ||