summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorAdam Daniels <adam@mediadrive.ca>2023-02-26 14:23:04 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-02-27 09:26:17 +0900
commit2535b1819f910f0e12bf609c72e45f7230a060c9 (patch)
tree1d92675c7c969c96fd5c90c453ae291d166455be /string.c
parent35136e1e9c232ad7a03407b992b2e86b6df43f63 (diff)
downloadruby-2535b1819f910f0e12bf609c72e45f7230a060c9.tar.gz
Symbol#end_with? accepts Strings only
Regular expressions are not supported (same as String#end_with?).
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
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 <tt>self.to_s.end_with?</tt>; see String#end_with?.