summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2024-01-19 16:03:38 +0900
committerYusuke Endoh <[email protected]>2024-02-15 18:42:31 +0900
commit25d74b9527cd525042ad0b612b794fa331d3a318 (patch)
tree3b40adf0eb79bb5d7e81640d98dee162c35c076b /object.c
parent926277bf826127c65689ddf01f94e23d538a3b8b (diff)
Do not include a backtick in error messages and backtraces
[Feature #16495]
Diffstat (limited to 'object.c')
-rw-r--r--object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/object.c b/object.c
index 63fa6b1a99..9f397b7a70 100644
--- a/object.c
+++ b/object.c
@@ -2247,10 +2247,10 @@ rb_class_get_superclass(VALUE klass)
return RCLASS(klass)->super;
}
-static const char bad_instance_name[] = "`%1$s' is not allowed as an instance variable name";
-static const char bad_class_name[] = "`%1$s' is not allowed as a class variable name";
+static const char bad_instance_name[] = "'%1$s' is not allowed as an instance variable name";
+static const char bad_class_name[] = "'%1$s' is not allowed as a class variable name";
static const char bad_const_name[] = "wrong constant name %1$s";
-static const char bad_attr_name[] = "invalid attribute name `%1$s'";
+static const char bad_attr_name[] = "invalid attribute name '%1$s'";
#define wrong_constant_name bad_const_name
/*! \private */