mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
Report 'a fraction' instead of 'a frac'
This commit is contained in:
parent
3972664e48
commit
024b0c85f8
@ -1600,8 +1600,8 @@ fn format_category<'b>(
|
||||
alloc.concat([this_is, alloc.text(" an integer")]),
|
||||
alloc.text(" of type:"),
|
||||
),
|
||||
Float => (
|
||||
alloc.concat([this_is, alloc.text(" a frac")]),
|
||||
Frac => (
|
||||
alloc.concat([this_is, alloc.text(" a fraction")]),
|
||||
alloc.text(" of type:"),
|
||||
),
|
||||
Str => (
|
||||
|
@ -6712,7 +6712,7 @@ All branches in an `if` must have the same type!
|
||||
let bad_type = if $suffix == "u8" { "I8" } else { "U8" };
|
||||
let carets = "^".repeat(number.len() + $suffix.len());
|
||||
let kind = match $suffix {
|
||||
"dec"|"f32"|"f64" => "a frac",
|
||||
"dec"|"f32"|"f64" => "a fraction",
|
||||
_ => "an integer",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user