Report 'a fraction' instead of 'a frac'

This commit is contained in:
Richard Feldman 2022-07-19 20:05:10 -04:00
parent 3972664e48
commit 024b0c85f8
No known key found for this signature in database
GPG Key ID: 7E4127D1E4241798
2 changed files with 3 additions and 3 deletions

View File

@ -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 => (

View File

@ -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",
};