From 51a434f7115c7cf1a29501448a978166f66d0383 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Wed, 27 Jun 2018 21:59:40 +0300 Subject: [PATCH] doc: fix some typos in deprecations.md and vm.md PR-URL: https://github.com/nodejs/node/pull/21569 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Weijia Wang --- doc/api/deprecations.md | 6 +++--- doc/api/vm.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 6882f41625f6fc..a163d2255d2118 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -979,8 +979,8 @@ because it also made sense to interpret the value as the number of bytes read by the engine, but is inconsistent with other streams in Node.js that expose values under these names. - -### DEP00XX: vm.Script cached data + +### DEP0110: vm.Script cached data Type: Documentation-only @@ -1031,7 +1031,7 @@ The option `produceCachedData` has been deprecated. Use [`process.env`]: process.html#process_process_env [`punycode`]: punycode.html [`require.extensions`]: modules.html#modules_require_extensions -[`script.createCachedData()`]: vm.html#vm_script_create_cached_data +[`script.createCachedData()`]: vm.html#vm_script_createcacheddata [`setInterval()`]: timers.html#timers_setinterval_callback_delay_args [`setTimeout()`]: timers.html#timers_settimeout_callback_delay_args [`tls.CryptoStream`]: tls.html#tls_class_cryptostream diff --git a/doc/api/vm.md b/doc/api/vm.md index e2ddd25e1cdeac..966ccbfaa25da1 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -435,7 +435,7 @@ changes: `cachedData` property of the returned `vm.Script` instance. The `cachedDataProduced` value will be set to either `true` or `false` depending on whether code cache data is produced successfully. - This option is deprecated in favor of `script.createCachedData`. + This option is deprecated in favor of `script.createCachedData()`. Creating a new `vm.Script` object compiles `code` but does not run it. The compiled `vm.Script` can be run later multiple times. The `code` is not bound to