From dffa7916075abb7770fcf655b1d9306385b4e748 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 12 Nov 2017 19:00:48 +0000 Subject: In error messages, remove ` with '; Fix error messages for `switch` --- src/exact_value.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/exact_value.cpp') 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; -- cgit v1.2.3