Skip to content
Permalink
Browse files
Docs: fix examples for no-multi-str (#13966)
* Docs: fix examples for no-multi-str

* change 'line' to 'text'
  • Loading branch information
mdjermanovic committed Jan 1, 2021
1 parent 0649871 commit 7297363ea355d0e3b2a74aaec586126deb91fd93
Showing with 7 additions and 4 deletions.
  1. +7 −4 docs/rules/no-multi-str.md
@@ -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.