diff --git a/crates/rome_js_analyze/src/analyzers/nursery/no_unsafe_finally.rs b/crates/rome_js_analyze/src/analyzers/nursery/no_unsafe_finally.rs index 9bbaffc2ef3..a76312bcd20 100644 --- a/crates/rome_js_analyze/src/analyzers/nursery/no_unsafe_finally.rs +++ b/crates/rome_js_analyze/src/analyzers/nursery/no_unsafe_finally.rs @@ -8,7 +8,7 @@ declare_rule! { /// Disallow control flow statements in finally blocks. /// /// JavaScript suspends the control flow statements of `try` and `catch` blocks until - /// the execution of finally block finishes. So, when `return`, `throw, `break`, or `continue` + /// the execution of finally block finishes. So, when `return`, `throw`, `break` or `continue` /// is used in finally, control flow statements inside `try` and `catch` are overwritten, /// which is considered as unexpected behavior. /// diff --git a/website/src/pages/lint/rules/noUnsafeFinally.md b/website/src/pages/lint/rules/noUnsafeFinally.md index 0a06817fda8..76a6d4114c4 100644 --- a/website/src/pages/lint/rules/noUnsafeFinally.md +++ b/website/src/pages/lint/rules/noUnsafeFinally.md @@ -8,7 +8,8 @@ parent: lint/rules/index Disallow control flow statements in finally blocks. JavaScript suspends the control flow statements of `try` and `catch` blocks until -the execution of finally block finishes. So, when `return`, `throw, `break`, or `continue`is used in finally, control flow statements inside`try`and`catch` are overwritten, +the execution of finally block finishes. So, when `return`, `throw`, `break` or `continue` +is used in finally, control flow statements inside `try` and `catch` are overwritten, which is considered as unexpected behavior. ## Examples