diff --git a/docs/rules/prefer-replace-text.md b/docs/rules/prefer-replace-text.md index 076665cf..881d544c 100644 --- a/docs/rules/prefer-replace-text.md +++ b/docs/rules/prefer-replace-text.md @@ -15,7 +15,7 @@ module.exports = { create(context) { context.report({ fix(fixer) { - // error, can be written: return fixer.replaceText([node, '']); + // error, can be written: return fixer.replaceText(node, ''); return fixer.replaceTextRange([node.range[0], node.range[1]], ''); }, });