summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.