docs(docstrings): fix runtime type annotations

This commit is contained in:
Elizabeth Paź
2022-10-05 13:21:45 +02:00
parent 1f2ded459a
commit 548a4e2587
4 changed files with 51 additions and 31 deletions

View File

@@ -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