runtime(doc): correct another problem in :h items()

Commit: 
https://github.com/vim/vim/commit/84a343a6ed34995adc67c062b64533c1b0bf7fb1
Author: zeertzjq <zeert...@outlook.com>
Date:   Wed Aug 20 21:10:43 2025 +0200

    runtime(doc): correct another problem in :h items()
    
    The returned value is only in arbitrary order for a Dict.
    
    closes: #18050
    
    Signed-off-by: zeertzjq <zeert...@outlook.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 44818dd59..7cac6b9a5 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -1,4 +1,4 @@
-*builtin.txt*  For Vim version 9.1.  Last change: 2025 Aug 18
+*builtin.txt*  For Vim version 9.1.  Last change: 2025 Aug 20
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -6315,7 +6315,8 @@ items({expr})                                             
*items()*
                Each |List| item is a list with two items:
                - for a |Dict|: the key and the value
                - for a |List|, |Tuple| 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()|.
 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1uooH5-009Ptl-Cd%40256bit.org.

Raspunde prin e-mail lui