summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--manual/index.html2
-rw-r--r--manual/v1.5/index.html2
-rw-r--r--manual/v1.6/index.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/manual/index.html b/manual/index.html
index fe7dc9b5..51d344fb 100644
--- a/manual/index.html
+++ b/manual/index.html
@@ -5487,7 +5487,7 @@ structures like <code>reduce</code>, <code>foreach</code>, <code>while</code>, a
<pre><code># Repeat an expression until it raises "break" as an
# error, then stop repeating without re-raising the error.
# But if the error caught is not "break" then re-raise it.
-try repeat(exp) catch .=="break" then empty else error;
+try repeat(exp) catch if .=="break" then empty else error
</code></pre>
<p>jq has a syntax for named lexical labels to "break" or "go (back) to":</p>
<pre><code>label $out | ... break $out ...
diff --git a/manual/v1.5/index.html b/manual/v1.5/index.html
index a6bc9eae..de36e7b6 100644
--- a/manual/v1.5/index.html
+++ b/manual/v1.5/index.html
@@ -4837,7 +4837,7 @@ structures like <code>reduce</code>, <code>foreach</code>, <code>while</code>, a
<pre><code># Repeat an expression until it raises "break" as an
# error, then stop repeating without re-raising the error.
# But if the error caught is not "break" then re-raise it.
-try repeat(exp) catch .=="break" then empty else error;
+try repeat(exp) catch if .=="break" then empty else error
</code></pre>
<p>jq has a syntax for named lexical labels to "break" or "go (back) to":</p>
<pre><code>label $out | ... break $out ...
diff --git a/manual/v1.6/index.html b/manual/v1.6/index.html
index e11f0565..724f90e3 100644
--- a/manual/v1.6/index.html
+++ b/manual/v1.6/index.html
@@ -5355,7 +5355,7 @@ structures like <code>reduce</code>, <code>foreach</code>, <code>while</code>, a
<pre><code># Repeat an expression until it raises "break" as an
# error, then stop repeating without re-raising the error.
# But if the error caught is not "break" then re-raise it.
-try repeat(exp) catch .=="break" then empty else error;
+try repeat(exp) catch if .=="break" then empty else error
</code></pre>
<p>jq has a syntax for named lexical labels to "break" or "go (back) to":</p>
<pre><code>label $out | ... break $out ...