Skip to content

Commit 8c9179d

Browse files
authoredSep 7, 2024··
docs(linter): fix typos (#5591)
1 parent 2661d8b commit 8c9179d

File tree

1 file changed

+2
-2
lines changed
  • crates/oxc_linter/src/fixer

1 file changed

+2
-2
lines changed
 

‎crates/oxc_linter/src/fixer/fix.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bitflags! {
1010
/// These are also used by the `LintService` to decide which kinds of
1111
/// changes to apply.
1212
///
13-
/// [`FixKind`] is designed to be interopable with [`bool`]. `true` turns
13+
/// [`FixKind`] is designed to be interoperable with [`bool`]. `true` turns
1414
/// into [`FixKind::Fix`] (applies only safe fixes) and `false` turns into
1515
/// [`FixKind::None`] (do not apply any fixes or suggestions).
1616
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
@@ -201,7 +201,7 @@ impl<'a> RuleFix<'a> {
201201
/// fixer.delete(bad_node).dangerously()
202202
/// }
203203
///
204-
/// is_dangerous(bad_node: &Expression<'_>) -> bool {
204+
/// fn is_dangerous(bad_node: &Expression<'_>) -> bool {
205205
/// // some check on bad_node
206206
/// # true
207207
/// }

0 commit comments

Comments
 (0)
Please sign in to comment.