diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml index e3d7e20984..f69b2bdf84 100644 --- a/docs/content/manual/manual.yml +++ b/docs/content/manual/manual.yml @@ -2256,7 +2256,7 @@ sections: # 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 jq has a syntax for named lexical labels to "break" or "go (back) to": diff --git a/docs/content/manual/v1.5/manual.yml b/docs/content/manual/v1.5/manual.yml index 5a0180f61b..f4e2a808d3 100644 --- a/docs/content/manual/v1.5/manual.yml +++ b/docs/content/manual/v1.5/manual.yml @@ -1920,7 +1920,7 @@ sections: # 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 jq has a syntax for named lexical labels to "break" or "go (back) to": diff --git a/docs/content/manual/v1.6/manual.yml b/docs/content/manual/v1.6/manual.yml index ec1f45d23a..a3dba79eb7 100644 --- a/docs/content/manual/v1.6/manual.yml +++ b/docs/content/manual/v1.6/manual.yml @@ -2166,7 +2166,7 @@ sections: # 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 jq has a syntax for named lexical labels to "break" or "go (back) to":