diff options
author | Maxim Kim <habamax@gmail.com> | 2023-12-12 03:09:38 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 17:09:38 +0100 |
commit | 34b9a15c378f7279bbbe2a80135ae79913c032ae (patch) | |
tree | 397dfd6548c53afbbf0f2c0c01c7388f2921ce6a | |
parent | ca7c9b1b59263938eea8dd5a197ca8312ffa91ac (diff) |
runtime(json): fix examples in comments for JSON formatting (#13660)
Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | runtime/autoload/dist/json.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/autoload/dist/json.vim b/runtime/autoload/dist/json.vim index dad95a54ad..9faa88ace3 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 |