Skip to content

Commit 60389c4

Browse files
committed
More RDoc
1 parent 7fc2a66 commit 60389c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/pattern_patch/core_ext/string.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class String
33
# data from matches. Modifies the receiver. The receiver
44
# need not match the matches.regexp.
55
#
6-
# :matches: A MatchData object returned by Regexp#match
6+
# [matches] [MatchData] A MatchData object returned by Regexp#match
77
def apply_matches!(matches)
88
search_position = 0
99
while (m = /\\(\d+)/.match(self, search_position))
@@ -19,7 +19,7 @@ def apply_matches!(matches)
1919
# in self replaced by appropriate data from matches. The receiver
2020
# need not match the matches.regexp.
2121
#
22-
# :matches: A MatchData object returned by Regexp#match
22+
# [matches] [MatchData] A MatchData object returned by Regexp#match
2323
def apply_matches(matches)
2424
string = clone
2525
string.apply_matches! matches

0 commit comments

Comments
 (0)