runtime(json): fix examples in comments for JSON formatting (#13660)

Commit: 
https://github.com/vim/vim/commit/34b9a15c378f7279bbbe2a80135ae79913c032ae
Author: Maxim Kim <haba...@gmail.com>
Date:   Tue Dec 12 03:09:38 2023 +1100

    runtime(json): fix examples in comments for JSON formatting 
(https://github.com/vim/vim/issues/13660)
    
    Signed-off-by: Maxim Kim <haba...@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/autoload/dist/json.vim b/runtime/autoload/dist/json.vim
index dad95a54a..9faa88ace 100644
--- a/runtime/autoload/dist/json.vim
+++ b/runtime/autoload/dist/json.vim
@@ -96,19 +96,19 @@ enddef
 
 # Format JSON string or dict/list as JSON
 # import autoload 'dist/json.vim'
-# echo json.FormatStr('{"hello": "world"}', {use_tabs: false, indent: 2, 
indent_base: 0})
+# echo json.Format('{"hello": "world"}', {use_tabs: false, indent: 2, 
indent_base: 0})
 
 # {
 #   "hello": "world"
 # }
 
-# echo json.FormatStr({'hello': 'world'}, {use_tabs: false, indent: 2, 
indent_base: 0})
+# echo json.Format({'hello': 'world'}, {use_tabs: false, indent: 2, 
indent_base: 0})
 # {
 #   "hello": "world"
 # }
 #
 # Note, when `obj` is dict, order of the `key: value` pairs might be different:
-# echo json.FormatStr({'hello': 1, 'world': 2})
+# echo json.Format({'hello': 1, 'world': 2})
 # {
 #   "world": 2,
 #   "hello": 1

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rCivw-00EUR4-KQ%40256bit.org.

Raspunde prin e-mail lui