docs: small fixes

Co-authored-by: Christian Clason <c.clason@uni-graz.at>
Co-authored-by: Gregory Anders <greg@gpanders.com>
Co-authored-by: HiPhish <hiphish@posteo.de>
Co-authored-by: Julio B <julio.bacel@gmail.com>
Co-authored-by: T727 <74924917+T-727@users.noreply.github.com>
Co-authored-by: camoz <camoz@users.noreply.github.com>
Co-authored-by: champignoom <66909116+champignoom@users.noreply.github.com>
This commit is contained in:
dundargoc
2023-05-13 21:33:22 +02:00
committed by GitHub
parent 1f33b2b1e8
commit 08991b0782
43 changed files with 98 additions and 94 deletions

View File

@@ -361,7 +361,7 @@ local function tbl_extend(behavior, deep_extend, ...)
return ret
end
--- Merges two or more map-like tables.
--- Merges two or more tables.
---
---@see |extend()|
---
@@ -369,13 +369,13 @@ end
--- - "error": raise an error
--- - "keep": use value from the leftmost map
--- - "force": use value from the rightmost map
---@param ... table Two or more map-like tables
---@param ... table Two or more tables
---@return table Merged table
function vim.tbl_extend(behavior, ...)
return tbl_extend(behavior, false, ...)
end
--- Merges recursively two or more map-like tables.
--- Merges recursively two or more tables.
---
---@see |vim.tbl_extend()|
---
@@ -385,7 +385,7 @@ end
--- - "error": raise an error
--- - "keep": use value from the leftmost map
--- - "force": use value from the rightmost map
---@param ... T2 Two or more map-like tables
---@param ... T2 Two or more tables
---@return T1|T2 (table) Merged table
function vim.tbl_deep_extend(behavior, ...)
return tbl_extend(behavior, true, ...)