Skip to content

Commit 51a434f

Browse files
vsemozhetbyttargos
authored andcommitted
doc: fix some typos in deprecations.md and vm.md
PR-URL: #21569 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Weijia Wang <[email protected]>
1 parent 0a1e8e0 commit 51a434f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/api/deprecations.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,8 @@ because it also made sense to interpret the value as the number of bytes
979979
read by the engine, but is inconsistent with other streams in Node.js that
980980
expose values under these names.
981981
982-
<a id="DEP00XX"></a>
983-
### DEP00XX: vm.Script cached data
982+
<a id="DEP0110"></a>
983+
### DEP0110: vm.Script cached data
984984
985985
Type: Documentation-only
986986
@@ -1031,7 +1031,7 @@ The option `produceCachedData` has been deprecated. Use
10311031
[`process.env`]: process.html#process_process_env
10321032
[`punycode`]: punycode.html
10331033
[`require.extensions`]: modules.html#modules_require_extensions
1034-
[`script.createCachedData()`]: vm.html#vm_script_create_cached_data
1034+
[`script.createCachedData()`]: vm.html#vm_script_createcacheddata
10351035
[`setInterval()`]: timers.html#timers_setinterval_callback_delay_args
10361036
[`setTimeout()`]: timers.html#timers_settimeout_callback_delay_args
10371037
[`tls.CryptoStream`]: tls.html#tls_class_cryptostream

doc/api/vm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ changes:
435435
`cachedData` property of the returned `vm.Script` instance.
436436
The `cachedDataProduced` value will be set to either `true` or `false`
437437
depending on whether code cache data is produced successfully.
438-
This option is deprecated in favor of `script.createCachedData`.
438+
This option is deprecated in favor of `script.createCachedData()`.
439439

440440
Creating a new `vm.Script` object compiles `code` but does not run it. The
441441
compiled `vm.Script` can be run later multiple times. The `code` is not bound to

0 commit comments

Comments
 (0)