aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerwin <herwinw@herwinw.nl>2023-10-20 11:26:37 +0200
committerGitHub <noreply@github.com>2023-10-20 18:26:37 +0900
commit8b3d044004be68acf2e71d43c51d99db3deff514 (patch)
tree36ee5a7fa96f7b714abc7cfc901123fb4b42f186
parent0061eaddc9de7e80ebce6fadd00b92beed46bbee (diff)
downloadruby-8b3d044004be68acf2e71d43c51d99db3deff514.tar.gz
[DOC] Indentation fix in comments of MatchData#inspect
The old version did not add syntax highlighting to the code block, and included the "Related:" line in the code block as well.
-rw-r--r--re.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/re.c b/re.c
index 535f599ca1..242b78a95f 100644
--- a/re.c
+++ b/re.c
@@ -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">
@@ -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