docs(lua): adjust some type annotations

This commit is contained in:
notomo
2023-01-04 20:48:41 +09:00
committed by GitHub
parent ef18c9f9b0
commit e35b9020b1
6 changed files with 14 additions and 14 deletions

View File

@@ -516,8 +516,8 @@ end
---
---@generic T
---@param list T[] (list) Table
---@param start number Start range of slice
---@param finish number End range of slice
---@param start number|nil Start range of slice
---@param finish number|nil End range of slice
---@return T[] (list) Copy of table sliced from start to finish (inclusive)
function vim.list_slice(list, start, finish)
local new_list = {}