diff options
| author | gingerBill <bill@gingerbill.org> | 2017-11-12 19:00:48 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-11-12 19:00:48 +0000 |
| commit | dffa7916075abb7770fcf655b1d9306385b4e748 (patch) | |
| tree | fdfab9dab21a05a377cee7ec9942c7605c1256b9 /src/exact_value.cpp | |
| parent | 5ce65557219d57d19e9e45c5670b48bb40e22c3f (diff) | |
In error messages, remove ` with '; Fix error messages for `switch`
Diffstat (limited to 'src/exact_value.cpp')
| -rw-r--r-- | src/exact_value.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp index ac70b42f4..ce7a78832 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -246,7 +246,7 @@ ExactValue exact_value_from_basic_literal(Token token) { case Token_Imag: { String str = token.string; Rune last_rune = cast(Rune)str[str.len-1]; - str.len--; // Ignore the `i|j|k` + str.len--; // Ignore the 'i|j|k' f64 imag = float_from_string(str); if (last_rune == 'i') { @@ -344,7 +344,7 @@ ExactValue exact_value_make_imag(ExactValue v) { case ExactValue_Float: return exact_value_complex(0, v.value_float); default: - GB_PANIC("Expected an integer or float type for `exact_value_make_imag`"); + GB_PANIC("Expected an integer or float type for 'exact_value_make_imag'"); } ExactValue r = {ExactValue_Invalid}; return r; |