]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(json): fix examples in comments for JSON formatting (#13660)
authorMaxim Kim <habamax@gmail.com>
Mon, 11 Dec 2023 16:09:38 +0000 (03:09 +1100)
committerGitHub <noreply@github.com>
Mon, 11 Dec 2023 16:09:38 +0000 (17:09 +0100)
Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/json.vim

index dad95a54adf1c2a0aad3bd3fb9ee12a3abb74850..9faa88ace3d448bb22bde6e92b3125e4f9afe6d5 100644 (file)
@@ -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