runtime(doc): fix style and clarify items() function for String type
Commit:
https://github.com/vim/vim/commit/44c8072ef64a7a218eb8cf4b72866921762633e4
Author: Christian Brabandt <
c...@256bit.org>
Date: Mon Aug 18 20:59:22 2025 +0200
runtime(doc): fix style and clarify items() function for String type
related:
https://github.com/vim/vim/issues/18021
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index e011c1088..d82b4e69b 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 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
diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt
index 360f3a862..0b5245e89 100644
--- a/runtime/doc/usr_41.txt
+++ b/runtime/doc/usr_41.txt
@@ -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