From 2535b1819f910f0e12bf609c72e45f7230a060c9 Mon Sep 17 00:00:00 2001 From: Adam Daniels Date: Sun, 26 Feb 2023 14:23:04 -0500 Subject: Symbol#end_with? accepts Strings only Regular expressions are not supported (same as String#end_with?). --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index e5af3f0c82..eefa6f397c 100644 --- a/string.c +++ b/string.c @@ -11845,7 +11845,7 @@ sym_start_with(int argc, VALUE *argv, VALUE sym) /* * call-seq: - * end_with?(*string_or_regexp) -> true or false + * end_with?(*strings) -> true or false * * * Equivalent to self.to_s.end_with?; see String#end_with?. -- cgit v1.2.1