mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 22:10:45 +00:00
docs(docstrings): fix runtime type annotations
This commit is contained in:
@@ -2,8 +2,12 @@ local F = {}
|
||||
|
||||
--- Returns {a} if it is not nil, otherwise returns {b}.
|
||||
---
|
||||
---@param a
|
||||
---@param b
|
||||
---@generic A
|
||||
---@generic B
|
||||
---
|
||||
---@param a A
|
||||
---@param b B
|
||||
---@return A | B
|
||||
function F.if_nil(a, b)
|
||||
if a == nil then
|
||||
return b
|
||||
|
||||
Reference in New Issue
Block a user