Skip to content

Commit 1a89e1c

Browse files
nwoltmannot-an-aardvark
authored andcommitted
Docs: Fix always-multiline example in multiline-ternary docs (#8904)
1 parent 5ea79dc commit 1a89e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/multiline-ternary.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ foo > bar ?
6868
Examples of **incorrect** code for this rule with the `"always-multiline"` option:
6969

7070
```js
71-
/*eslint multiline-ternary: ["error", "always"]*/
71+
/*eslint multiline-ternary: ["error", "always-multiline"]*/
7272

7373
foo > bar ? value1 :
7474
value2;
@@ -83,7 +83,7 @@ foo > bar &&
8383
Examples of **correct** code for this rule with the `"always-multiline"` option:
8484

8585
```js
86-
/*eslint multiline-ternary: ["error", "always"]*/
86+
/*eslint multiline-ternary: ["error", "always-multiline"]*/
8787

8888
foo > bar ? value1 : value2;
8989

0 commit comments

Comments
 (0)