Skip to content

Commit

Permalink
[DOC] Indentation fix in comments of MatchData#inspect
Browse files Browse the repository at this point in the history
The old version did not add syntax highlighting to the code block, and
included the "Related:" line in the code block as well.
  • Loading branch information
herwinw committed Oct 20, 2023
1 parent 0061ead commit 8b3d044
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions re.c
Expand Up @@ -2489,10 +2489,10 @@ match_inspect_name_iter(const OnigUChar *name, const OnigUChar *name_end,
}

/*
* call-seq:
* inspect -> string
* call-seq:
* inspect -> string
*
* Returns a string representation of +self+:
* Returns a string representation of +self+:
*
* m = /.$/.match("foo")
* # => #<MatchData "o">
Expand All @@ -2507,7 +2507,6 @@ match_inspect_name_iter(const OnigUChar *name, const OnigUChar *name_end,
* m.inspect # => "#<MatchData \"fo\" 1:\"f\" 2:nil 3:\"o\">"
*
* Related: MatchData#to_s.
*
*/

static VALUE
Expand Down

0 comments on commit 8b3d044

Please sign in to comment.