diff options
author | Adam Daniels <[email protected]> | 2023-02-26 14:23:04 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-02-27 09:26:17 +0900 |
commit | 2535b1819f910f0e12bf609c72e45f7230a060c9 (patch) | |
tree | 1d92675c7c969c96fd5c90c453ae291d166455be /string.c | |
parent | 35136e1e9c232ad7a03407b992b2e86b6df43f63 (diff) |
Symbol#end_with? accepts Strings only
Regular expressions are not supported (same as String#end_with?).
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7384
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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?. |