diff --git a/re.c b/re.c index 9941cf2deb..969c1ec7b4 100644 --- a/re.c +++ b/re.c @@ -3578,8 +3578,8 @@ rb_reg_quote(VALUE str) * Regexp.quote(str) -> string * * Escapes any characters that would have special meaning in a regular - * expression. Returns a new escaped string, or self if no characters are - * escaped. For any string, + * expression. Returns a new escaped string with the same or compatible + * encoding. For any string, * Regexp.new(Regexp.escape(str))=~str will be true. * * Regexp.escape('\*?{}.') #=> \\\*\?\{\}\.