runtime(doc): fix return type in getqflist() and getloclist()

Commit: 
https://github.com/vim/vim/commit/745335c876b6e7a164f4e3443f90e67908004e49
Author: Mao-Yining <[email protected]>
Date:   Sat Jan 17 10:03:52 2026 +0000

    runtime(doc): fix return type in getqflist() and getloclist()
    
    Problem: `call getqflist({})` will return `{}`, which is type dict<any>
    Solution: fix it in the document.
    
    closes: #19197
    
    Signed-off-by: Mao-Yining <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index c3364d4fb..c940ee50c 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -1,4 +1,4 @@
-*builtin.txt*  For Vim version 9.1.  Last change: 2026 Jan 03
+*builtin.txt*  For Vim version 9.1.  Last change: 2026 Jan 17
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -4727,7 +4727,7 @@ getloclist({nr} [, {what}])                               
*getloclist()*
                        :echo getloclist(3, {'all': 0})
                        :echo getloclist(5, {'filewinid': 0})
 <
-               Return type: list<dict<any>> or list<any>
+               Return type: list<dict<any>> or dict<any>
 
 
 getmarklist([{buf}])                                   *getmarklist()*
@@ -5008,7 +5008,7 @@ getqflist([{what}])                                       
*getqflist()*
                        :echo getqflist({'nr': 2, 'title': 1})
                        :echo getqflist({'lines' : ["F1:10:L10"]})
 <
-               Return type: list<dict<any>> or list<any>
+               Return type: list<dict<any>> or dict<any>
 
 
 getreg([{regname} [, 1 [, {list}]]])                   *getreg()*

-- 
-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vh3Km-00HDie-9d%40256bit.org.

Raspunde prin e-mail lui