From 44c8072ef64a7a218eb8cf4b72866921762633e4 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 18 Aug 2025 20:59:22 +0200 Subject: [PATCH] runtime(doc): fix style and clarify items() function for String type related: #18021 Signed-off-by: Christian Brabandt --- runtime/doc/builtin.txt | 4 ++-- runtime/doc/usr_41.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index e011c10888..d82b4e69b2 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 360f3a8622..0b5245e898 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