From 8c9179d58aee0a6d799deef29cc5255067bf2e3e Mon Sep 17 00:00:00 2001 From: Brian Donovan <1938+eventualbuddha@users.noreply.github.com> Date: Sat, 7 Sep 2024 10:14:38 -0700 Subject: [PATCH] docs(linter): fix typos (#5591) --- crates/oxc_linter/src/fixer/fix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_linter/src/fixer/fix.rs b/crates/oxc_linter/src/fixer/fix.rs index 37d5f25ee46e4..d2375ae65c4c9 100644 --- a/crates/oxc_linter/src/fixer/fix.rs +++ b/crates/oxc_linter/src/fixer/fix.rs @@ -10,7 +10,7 @@ bitflags! { /// These are also used by the `LintService` to decide which kinds of /// changes to apply. /// - /// [`FixKind`] is designed to be interopable with [`bool`]. `true` turns + /// [`FixKind`] is designed to be interoperable with [`bool`]. `true` turns /// into [`FixKind::Fix`] (applies only safe fixes) and `false` turns into /// [`FixKind::None`] (do not apply any fixes or suggestions). #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -201,7 +201,7 @@ impl<'a> RuleFix<'a> { /// fixer.delete(bad_node).dangerously() /// } /// - /// is_dangerous(bad_node: &Expression<'_>) -> bool { + /// fn is_dangerous(bad_node: &Expression<'_>) -> bool { /// // some check on bad_node /// # true /// }