Skip to content

Commit

Permalink
docs: Fix a try-catch example (fix #1558, #1777) (#2605)
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny authored Jun 6, 2023
1 parent df8ee8d commit b8816ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/content/manual/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,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":
Expand Down
2 changes: 1 addition & 1 deletion docs/content/manual/v1.5/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion docs/content/manual/v1.6/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit b8816ca

Please sign in to comment.