diff --git a/re.c b/re.c index 3e059b6287..002be7ce9e 100644 --- a/re.c +++ b/re.c @@ -487,10 +487,14 @@ rb_reg_desc(const char *s, long len, VALUE re) * * /ab+c/ix.source # => "ab+c" * - * Note that escape sequences are retained as is: + * Regexp escape sequences are retained: * * /\x20\+/.source # => "\\x20\\+" * + * Lexer escape characters are not retained: + * + * /\//.source # => "/" + * */ static VALUE