Skip to content

Commit 3d04e6c

Browse files
committed
doc: fix some typos in deprecations.md and vm.md
PR-URL: #21569 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com>
1 parent 80496a5 commit 3d04e6c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/api/deprecations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -991,8 +991,8 @@ accepted by the legacy `url.parse()` API. The mentioned APIs now use the WHATWG
991991
URL parser that requires strictly valid URLs. Passing an invalid URL is
992992
deprecated and support will be removed in the future.
993993
994-
<a id="DEP00XX"></a>
995-
### DEP00XX: vm.Script cached data
994+
<a id="DEP0110"></a>
995+
### DEP0110: vm.Script cached data
996996
997997
Type: Documentation-only
998998
@@ -1047,7 +1047,7 @@ The option `produceCachedData` has been deprecated. Use
10471047
[`process.env`]: process.html#process_process_env
10481048
[`punycode`]: punycode.html
10491049
[`require.extensions`]: modules.html#modules_require_extensions
1050-
[`script.createCachedData()`]: vm.html#vm_script_create_cached_data
1050+
[`script.createCachedData()`]: vm.html#vm_script_createcacheddata
10511051
[`setInterval()`]: timers.html#timers_setinterval_callback_delay_args
10521052
[`setTimeout()`]: timers.html#timers_settimeout_callback_delay_args
10531053
[`tls.CryptoStream`]: tls.html#tls_class_cryptostream

doc/api/vm.md

Lines changed: 1 addition & 1 deletion
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)