diff --git a/string.c b/string.c index d7871c15e3..a8f2a1eee5 100644 --- a/string.c +++ b/string.c @@ -1382,7 +1382,7 @@ rb_check_string_type(VALUE str) * String.try_convert(obj) -> string or nil * * Try to convert obj into a String, using to_str method. - * Returns converted regexp or nil if obj cannot be converted + * Returns converted string or nil if obj cannot be converted * for any reason. * * String.try_convert("str") # => str