diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-06-02 16:59:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 22:59:58 +0800 |
commit | aa130d0c7ea69a05330d0b054b414cc3a15dac45 (patch) | |
tree | a1a6489799418d2d7e804a522239211b8d86d9e1 /runtime/doc/luaref.txt | |
parent | 4b60267f82ef1947f8a583c02eaf502cf1db69ca (diff) | |
download | rneovim-aa130d0c7ea69a05330d0b054b414cc3a15dac45.tar.gz rneovim-aa130d0c7ea69a05330d0b054b414cc3a15dac45.tar.bz2 rneovim-aa130d0c7ea69a05330d0b054b414cc3a15dac45.zip |
docs: small fixes (#23619)
Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Co-authored-by: Gustavo Ferreira <gustavo.ferreira@imaginecurve.com>
Co-authored-by: Kai Moschcau <mail@kmoschcau.de>
Co-authored-by: Lampros <hauahx@gmail.com>
Diffstat (limited to 'runtime/doc/luaref.txt')
-rw-r--r-- | runtime/doc/luaref.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/luaref.txt b/runtime/doc/luaref.txt index aafdd5c43e..a01196e538 100644 --- a/runtime/doc/luaref.txt +++ b/runtime/doc/luaref.txt @@ -4101,16 +4101,16 @@ string.gsub({s}, {pattern}, {repl} [, {n}]) *string.gsub()* x = string.gsub("hello world from Lua", "(%w+)%s*(%w+)", "%2 %1") --> x="world hello Lua from" - x = string.gsub("home = `HOME, user = ` USER", "%$(%w+)", os.getenv) + x = string.gsub("home = $HOME, user = $USER", "%$(%w+)", os.getenv) --> x="home = /home/roberto, user = roberto" - x = string.gsub("4+5 = `return 4+5` ", "% `(.-)%` ", function (s) + x = string.gsub("4+5 = $return 4+5$", "%$(.-)%$", function (s) return loadstring(s)() end) --> x="4+5 = 9" local t = {name="lua", version="5.1"} - x = string.gsub(" `name%-` version.tar.gz", "%$(%w+)", t) + x = string.gsub("$name%-$version.tar.gz", "%$(%w+)", t) --> x="lua-5.1.tar.gz" < |