Skip to content

Commit 9b40837

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#include?
1 parent d96991c commit 9b40837

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

string.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7083,13 +7083,17 @@ rb_str_reverse_bang(VALUE str)
70837083
* call-seq:
70847084
* include?(other_string) -> true or false
70857085
*
7086-
* Returns +true+ if +self+ contains +other_string+, +false+ otherwise:
7086+
* Returns whether +self+ contains +other_string+:
70877087
*
7088-
* s = 'foo'
7089-
* s.include?('f') # => true
7090-
* s.include?('fo') # => true
7091-
* s.include?('food') # => false
7088+
* s = 'bar'
7089+
* s.include?('ba') # => true
7090+
* s.include?('ar') # => true
7091+
* s.include?('bar') # => true
7092+
* s.include?('a') # => true
7093+
* s.include?('') # => true
7094+
* s.include?('foo') # => false
70927095
*
7096+
* Related: see {Querying}[rdoc-ref:String@Querying].
70937097
*/
70947098

70957099
VALUE

0 commit comments

Comments
 (0)