diff --git a/docs/src/extend/custom-rules.md b/docs/src/extend/custom-rules.md index 70d7803165fa..f5508e82ee49 100644 --- a/docs/src/extend/custom-rules.md +++ b/docs/src/extend/custom-rules.md @@ -518,7 +518,7 @@ module.exports = { }; ``` -**Deprecated:** The `context.getScope()` method is deprecated; make sure to use `context.sourceCode` property instead. +**Deprecated:** The `context.getSourceCode()` method is deprecated; make sure to use `context.sourceCode` property instead. Once you have an instance of `SourceCode`, you can use the following methods on it to work with the code: