Skip to content

Commit

Permalink
Docs: fix incorrect selector examples (#8278)
Browse files Browse the repository at this point in the history
  • Loading branch information
not-an-aardvark committed Mar 17, 2017
1 parent ca1d478 commit 602e9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/developer-guide/selectors.md
Expand Up @@ -95,7 +95,7 @@ With the [no-restricted-syntax](/docs/rules/no-restricted-syntax) rule, you can
```json
{
"rules": {
"no-restricted-syntax": ["error", "IfStatement > :not(BlockStatement).body"]
"no-restricted-syntax": ["error", "IfStatement > :not(BlockStatement).consequent"]
}
}
```
Expand All @@ -105,7 +105,7 @@ With the [no-restricted-syntax](/docs/rules/no-restricted-syntax) rule, you can
```json
{
"rules": {
"no-restricted-syntax": ["error", "IfStatement[body.type!='BlockStatement']"]
"no-restricted-syntax": ["error", "IfStatement[consequent.type!='BlockStatement']"]
}
}
```
Expand Down

0 comments on commit 602e9c2

Please sign in to comment.