summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2023-01-13 09:46:15 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2023-01-13 09:46:15 +0900
commit391d4310730cabee63608d8c75d35dbf76a77c5f (patch)
treefc68a13a0be3b4f4c01de0fb0d5685b19b8db73f
parent2e7bceb34ea858649e1f975a934ce1894d1f06a6 (diff)
[DOC] Fix markup [ci skip]
-rw-r--r--doc/regexp.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc
index c6c983d1d9..51ea772062 100644
--- a/doc/regexp.rdoc
+++ b/doc/regexp.rdoc
@@ -407,7 +407,7 @@ a single one that matches any of the expressions. Each expression is an
== Condition
-The <tt>(?(</tt><i>cond</><tt>)</tt><i>yes</i><tt>|</tt><i>no</i><tt>)</tt>
+The <tt>(?(</tt><i>cond</i><tt>)</tt><i>yes</i><tt>|</tt><i>no</i><tt>)</tt>
syntax matches _yes_ part if _cond_ is captured, otherwise matches _no_ part.
In the case _no_ part is empty, also <tt>|</tt> can be omitted.