aboutsummaryrefslogtreecommitdiffstats
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/marshal.c b/marshal.c
index 89f9315d13..ca97ee3226 100644
--- a/marshal.c
+++ b/marshal.c
@@ -180,7 +180,7 @@ class2path(VALUE klass)
n);
}
if (rb_path2class(n) != rb_class_real(klass)) {
- rb_raise(rb_eTypeError, "%s can't be referred", n);
+ rb_raise(rb_eTypeError, "%s can't be referred to", n);
}
return path;
}
@@ -1164,7 +1164,7 @@ path2class(const char *path)
VALUE v = rb_path2class(path);
if (TYPE(v) != T_CLASS) {
- rb_raise(rb_eArgError, "%s does not refer class", path);
+ rb_raise(rb_eArgError, "%s does not refer to class", path);
}
return v;
}
@@ -1175,7 +1175,7 @@ path2module(const char *path)
VALUE v = rb_path2class(path);
if (TYPE(v) != T_MODULE) {
- rb_raise(rb_eArgError, "%s does not refer module", path);
+ rb_raise(rb_eArgError, "%s does not refer to module", path);
}
return v;
}