]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): fix style and clarify items() function for String type
authorChristian Brabandt <cb@256bit.org>
Mon, 18 Aug 2025 18:59:22 +0000 (20:59 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 18 Aug 2025 18:59:22 +0000 (20:59 +0200)
related: #18021

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt
runtime/doc/usr_41.txt

index e011c10888bbdc21b8837ed74e6c420ddcc6bbd1..d82b4e69b23449295434e8aec334d242fb73a1a5 100644 (file)
@@ -1,4 +1,4 @@
-*builtin.txt*  For Vim version 9.1.  Last change: 2025 Aug 17
+*builtin.txt*  For Vim version 9.1.  Last change: 2025 Aug 18
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -6311,7 +6311,7 @@ isnan({expr})                                             *isnan()*
 
 
 items({expr})                                          *items()*
-               Return a |List| with all the key/index and value pairs of {expr}.
+               Return a |List| with all key/index and value pairs of {expr}.
                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
index 360f3a862256c8b96be85d3ff04a5f8a28b28b99..0b5245e898c9095425f9eeb7afa79ed375f3a648 100644 (file)
@@ -1,4 +1,4 @@
-*usr_41.txt*   For Vim version 9.1.  Last change: 2025 Aug 17
+*usr_41.txt*   For Vim version 9.1.  Last change: 2025 Aug 18
 
                     VIM USER MANUAL - by Bram Moolenaar
 
@@ -806,7 +806,7 @@ String manipulation:                                        *string-functions*
        ngettext()              lookup single/plural message translation
        str2blob()              convert a list of strings into a blob
        blob2str()              convert a blob into a list of strings
-       items()                 get List of List index-value pairs
+       items()                 get List of String index-character pairs
 
 List manipulation:                                     *list-functions*
        get()                   get an item without error for wrong index