Skip to content

Commit

Permalink
Docs: fix examples for no-multi-str (#13966)
Browse files Browse the repository at this point in the history
* Docs: fix examples for no-multi-str

* change 'line' to 'text'
  • Loading branch information
mdjermanovic committed Jan 1, 2021
1 parent 0649871 commit 7297363
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/rules/no-multi-str.md
Expand Up @@ -17,15 +17,18 @@ Examples of **incorrect** code for this rule:

```js
/*eslint no-multi-str: "error"*/
var x = "Line 1 \
Line 2";

var x = "some very \
long text";
```

Examples of **correct** code for this rule:

```js
/*eslint no-multi-str: "error"*/

var x = "Line 1\n" +
"Line 2";
var x = "some very long text";

var x = "some very " +
"long text";
```

0 comments on commit 7297363

Please sign in to comment.