mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	docs(api): vim.version.range():has() method #31622
Problem: The :has() method of the vim.version.range() result is not documented though it's mentioned in examples. Solution: Mention it in the range() result doc.
This commit is contained in:
		| @@ -3998,6 +3998,7 @@ vim.version.range({spec})                                *vim.version.range()* | |||||||
|         (`table?`) A table with the following fields: |         (`table?`) A table with the following fields: | ||||||
|         • {from} (`vim.Version`) |         • {from} (`vim.Version`) | ||||||
|         • {to}? (`vim.Version`) |         • {to}? (`vim.Version`) | ||||||
|  |         • {has} (`fun(self: vim.VersionRange, version: string|vim.Version)`) | ||||||
|  |  | ||||||
|     See also: ~ |     See also: ~ | ||||||
|       • https://github.com/npm/node-semver#ranges |       • https://github.com/npm/node-semver#ranges | ||||||
|   | |||||||
| @@ -227,8 +227,7 @@ end | |||||||
| ---@field to? vim.Version | ---@field to? vim.Version | ||||||
| local VersionRange = {} | local VersionRange = {} | ||||||
|  |  | ||||||
| --- @private | ---@nodoc | ||||||
| --- |  | ||||||
| ---@param version string|vim.Version | ---@param version string|vim.Version | ||||||
| function VersionRange:has(version) | function VersionRange:has(version) | ||||||
|   if type(version) == 'string' then |   if type(version) == 'string' then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lukasz Piepiora
					Lukasz Piepiora