diff options
author | Jaehwang Jung <tomtomjhj@gmail.com> | 2023-03-04 22:05:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 13:05:01 +0000 |
commit | 6a20c29dcd050fee011ec1c451b5e70940152885 (patch) | |
tree | 3d3fce5069cf4e767b1e93d8ca4c0a0e42c7339f | |
parent | 128b82103ba477482bdfaf10ec71e0986876cca1 (diff) | |
download | rneovim-6a20c29dcd050fee011ec1c451b5e70940152885.tar.gz rneovim-6a20c29dcd050fee011ec1c451b5e70940152885.tar.bz2 rneovim-6a20c29dcd050fee011ec1c451b5e70940152885.zip |
docs(filetype): number → integer (#22516)
-rw-r--r-- | runtime/lua/vim/filetype.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 8911eafc71..65579d3543 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -28,9 +28,9 @@ end --- If only start_lnum is specified, return a single line as a string. --- If both start_lnum and end_lnum are omitted, return all lines from the buffer. --- ----@param bufnr number|nil The buffer to get the lines from ----@param start_lnum number|nil The line number of the first line (inclusive, 1-based) ----@param end_lnum number|nil The line number of the last line (inclusive, 1-based) +---@param bufnr integer|nil The buffer to get the lines from +---@param start_lnum integer|nil The line number of the first line (inclusive, 1-based) +---@param end_lnum integer|nil The line number of the last line (inclusive, 1-based) ---@return table<string>|string Array of lines, or string when end_lnum is omitted function M.getlines(bufnr, start_lnum, end_lnum) if end_lnum then @@ -67,8 +67,8 @@ end ---@private --- Get the next non-whitespace line in the buffer. --- ----@param bufnr number The buffer to get the line from ----@param start_lnum number The line number of the first line to start from (inclusive, 1-based) +---@param bufnr integer The buffer to get the line from +---@param start_lnum integer The line number of the first line to start from (inclusive, 1-based) ---@return string|nil The first non-blank line if found or `nil` otherwise function M.nextnonblank(bufnr, start_lnum) for _, line in ipairs(M.getlines(bufnr, start_lnum, -1)) do |