summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/string.c b/string.c
index 57ab6da..427e3aa 100644
--- a/string.c
+++ b/string.c
@@ -8219,6 +8219,12 @@ rb_str_start_with(int argc, VALUE *argv, VALUE str)
* str.end_with?([suffixes]+) -> true or false
*
* Returns true if +str+ ends with one of the +suffixes+ given.
+ *
+ * "hello".end_with?("ello") #=> true
+ *
+ * # returns true if one of the +suffixes+ matches.
+ * "hello".end_with?("heaven", "ello") #=> true
+ * "hello".end_with?("heaven", "paradise") #=> false
*/
static VALUE