Skip to content

Commit 2c9f0c0

Browse files
docs: update JSON representation example in README for Uint64
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 525c560 commit 2c9f0c0

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

  • lib/node_modules/@stdlib/number/uint64/ctor

lib/node_modules/@stdlib/number/uint64/ctor/README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,7 @@ Returns a [JSON][json] representation of a `Uint64` instance. [`JSON.stringify()
161161
var x = new Uint64( 5 );
162162

163163
var o = x.toJSON();
164-
/*
165-
{
166-
"type": "Uint64",
167-
"high": 0,
168-
"low": 5
169-
}
170-
*/
164+
// returns { 'type': 'Uint64', 'words': [ 0, 5 ] }
171165
```
172166

173167
To [revive][mdn-json-parse] a `Uint64` instance from a [JSON][json] string, see [@stdlib/number/uint64/reviver][@stdlib/number/uint64/reviver].

0 commit comments

Comments
 (0)