literal strings -> double bracketed strings

Turns out I misread `Programming in Lua` when I wrote this.
This commit is contained in:
Timothée Sterle 2021-09-16 20:14:00 +02:00
parent a74f03fadb
commit 52676009a9
No known key found for this signature in database
GPG Key ID: 136D558122196ED5
2 changed files with 3 additions and 3 deletions

View File

@ -511,7 +511,7 @@ Since you have to pass strings to these functions, you often end up having to es
vim.cmd('%s/\\Vfoo/bar/g')
```
Literal strings are easier to use as they do not require escaping characters:
Double bracketed strings are easier to use as they do not require escaping characters:
```lua
vim.cmd([[%s/\Vfoo/bar/g]])

View File

@ -620,8 +620,8 @@ having to escape backslashes:
vim.cmd('%s/\\Vfoo/bar/g')
<
Literal strings are easier to use as they do not require escaping
characters:
Double bracketed strings are easier to use as they do not require
escaping characters:
>
vim.cmd([[%s/\Vfoo/bar/g]])