mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:84a343a: runtime(doc): correct another problem in :h items()
The returned value is only in arbitrary order for a Dict.
closes: vim/vim#18050
84a343a6ed
This commit is contained in:
@@ -5429,7 +5429,8 @@ items({expr}) *items()*
|
||||
Each |List| item is a list with two items:
|
||||
- for a |Dict|: the key and the value
|
||||
- for a |List| or |String|: the index and the value
|
||||
The |List| is in arbitrary order.
|
||||
The returned |List| is in arbitrary order for a |Dict|,
|
||||
otherwise it's in ascending order of the index.
|
||||
|
||||
Also see |keys()| and |values()|.
|
||||
|
||||
|
3
runtime/lua/vim/_meta/vimfn.lua
generated
3
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -4912,7 +4912,8 @@ function vim.fn.isnan(expr) end
|
||||
--- Each |List| item is a list with two items:
|
||||
--- - for a |Dict|: the key and the value
|
||||
--- - for a |List| or |String|: the index and the value
|
||||
--- The |List| is in arbitrary order.
|
||||
--- The returned |List| is in arbitrary order for a |Dict|,
|
||||
--- otherwise it's in ascending order of the index.
|
||||
---
|
||||
--- Also see |keys()| and |values()|.
|
||||
---
|
||||
|
@@ -6061,7 +6061,8 @@ M.funcs = {
|
||||
Each |List| item is a list with two items:
|
||||
- for a |Dict|: the key and the value
|
||||
- for a |List| or |String|: the index and the value
|
||||
The |List| is in arbitrary order.
|
||||
The returned |List| is in arbitrary order for a |Dict|,
|
||||
otherwise it's in ascending order of the index.
|
||||
|
||||
Also see |keys()| and |values()|.
|
||||
|
||||
|
Reference in New Issue
Block a user