From 66ea7658a6ef9563710c4a072bfdfe9a537446dd Mon Sep 17 00:00:00 2001 From: Lukasz Piepiora Date: Wed, 18 Dec 2024 12:51:03 +0100 Subject: [PATCH] docs: remove @private from VersionRange:has --- runtime/doc/lua.txt | 1 + runtime/lua/vim/version.lua | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index dad3d92238..711607d14b 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -3998,6 +3998,7 @@ vim.version.range({spec}) *vim.version.range()* (`table?`) A table with the following fields: • {from} (`vim.Version`) • {to}? (`vim.Version`) + • {has} (`fun(self: vim.VersionRange, version: string|vim.Version)`) See also: ~ • https://github.com/npm/node-semver#ranges diff --git a/runtime/lua/vim/version.lua b/runtime/lua/vim/version.lua index d64ef98d2d..06c54ac033 100644 --- a/runtime/lua/vim/version.lua +++ b/runtime/lua/vim/version.lua @@ -227,8 +227,7 @@ end ---@field to? vim.Version local VersionRange = {} ---- @private ---- +---@nodoc ---@param version string|vim.Version function VersionRange:has(version) if type(version) == 'string' then