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:
zeertzjq
2025-08-21 08:35:30 +08:00
parent 1fdacbb3e4
commit 7d53982b7f
3 changed files with 6 additions and 3 deletions

View File

@@ -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()|.

View File

@@ -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()|.
---

View File

@@ -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()|.