Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions array.c
Original file line number Diff line number Diff line change
Expand Up @@ -3659,9 +3659,9 @@ rb_ary_collect(VALUE ary)

/*
* call-seq:
* collect! {|element| ... } -> new_array
* collect! {|element| ... } -> self
* collect! -> new_enumerator
* map! {|element| ... } -> new_array
* map! {|element| ... } -> self
* map! -> new_enumerator
*
* With a block given, calls the block with each element of +self+
Expand Down Expand Up @@ -4755,10 +4755,10 @@ rb_ary_clear(VALUE ary)

/*
* call-seq:
* fill(object, start = nil, count = nil) -> new_array
* fill(object, range) -> new_array
* fill(start = nil, count = nil) {|element| ... } -> new_array
* fill(range) {|element| ... } -> new_array
* fill(object, start = nil, count = nil) -> self
* fill(object, range) -> self
* fill(start = nil, count = nil) {|element| ... } -> self
* fill(range) {|element| ... } -> self
*
* Replaces selected elements in +self+;
* may add elements to +self+;
Expand Down
2 changes: 1 addition & 1 deletion doc/_regexp.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ An added _quantifier_ specifies how many matches are required or allowed:
/\w*/.match('x')
# => #<MatchData "x">
/\w*/.match('xyz')
# => #<MatchData "yz">
# => #<MatchData "xyz">

- <tt>+</tt> - Matches one or more times:

Expand Down