Skip to content
Permalink
Browse files
docs: fix typo in working-with-rules.md (#15233)
  • Loading branch information
snitin315 committed Oct 30, 2021
1 parent 4e9c6ed commit 12b627da401c68a5081822a49068421f1bb2465c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -531,7 +531,7 @@ module.exports = {
};
```

Once you have an instance of `SourceCode`, you can use the methods on it to work with the code:
Once you have an instance of `SourceCode`, you can use the following methods on it to work with the code:

* `getText(node)` - returns the source code for the given node. Omit `node` to get the whole source.
* `getAllComments()` - returns an array of all comments in the source.

0 comments on commit 12b627d

Please sign in to comment.