diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-10-05 20:21:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 20:21:30 +0200 |
commit | ede85dda2ee23820481d38d0def2d2c83da4e43e (patch) | |
tree | 0d9298ed19c15e40298927830744b0f5a7bc2cb5 /runtime/lua/vim/F.lua | |
parent | 28e228d60dc1120a56be8757ddf7bc0deedf71da (diff) | |
parent | 548a4e258777a405cc2b1225cab9a8292924407b (diff) | |
download | rneovim-ede85dda2ee23820481d38d0def2d2c83da4e43e.tar.gz rneovim-ede85dda2ee23820481d38d0def2d2c83da4e43e.tar.bz2 rneovim-ede85dda2ee23820481d38d0def2d2c83da4e43e.zip |
Merge pull request #20496 from ehllie/runtime_annotations
docs(docstrings): fix runtime type annotations
Diffstat (limited to 'runtime/lua/vim/F.lua')
-rw-r--r-- | runtime/lua/vim/F.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/lua/vim/F.lua b/runtime/lua/vim/F.lua index bca5ddf68b..3e370c0a84 100644 --- a/runtime/lua/vim/F.lua +++ b/runtime/lua/vim/F.lua @@ -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 |