summaryrefslogtreecommitdiff
path: root/lib/repl.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2020-08-05 22:03:54 -0700
committerRich Trott <rtrott@gmail.com>2020-08-08 12:04:35 -0700
commit614298d0113aa5b9783a12dd9adba6023954bf9b (patch)
treea7cfda53176aaf045327385810fbef2b6fd94233 /lib/repl.js
parente948ef351b4111d78ae8ba08f29eb138af22fa0b (diff)
downloadnode-new-614298d0113aa5b9783a12dd9adba6023954bf9b.tar.gz
repl: use _REPL_ in user-facing text
User-facing error messages should use _REPL_ for the general REPL and not _repl_ which should be reserved for referring to the module itself, etc. _REPL_ is an acronym, so it should be capitalized, as it generally is in documentation in other technologies, and is usually in our own documentation. This fixes a few inconsistent usages in lib/repl.js. PR-URL: https://github.com/nodejs/node/pull/34643 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'lib/repl.js')
-rw-r--r--lib/repl.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/repl.js b/lib/repl.js
index b881a17936..b2c0e3aa1b 100644
--- a/lib/repl.js
+++ b/lib/repl.js
@@ -19,7 +19,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
-/* A repl library that you can include in your own code to get a runtime
+/* A REPL library that you can include in your own code to get a runtime
* interface to your program.
*
* const repl = require("repl");
@@ -581,7 +581,7 @@ function REPLServer(prompt,
'module';
if (StringPrototypeIncludes(e.message, importErrorStr)) {
e.message = 'Cannot use import statement inside the Node.js ' +
- 'repl, alternatively use dynamic import';
+ 'REPL, alternatively use dynamic import';
e.stack = e.stack.replace(/SyntaxError:.*\n/,
`SyntaxError: ${e.message}\n`);
}
@@ -790,7 +790,7 @@ function REPLServer(prompt,
if (e && !self[kBufferedCommandSymbol] && cmd.trim().startsWith('npm ')) {
self.output.write('npm should be run outside of the ' +
- 'node repl, in your normal shell.\n' +
+ 'node REPL, in your normal shell.\n' +
'(Press Control-D to exit.)\n');
self.displayPrompt();
return;
@@ -1487,7 +1487,7 @@ function defineDefaultCommands(repl) {
});
repl.defineCommand('exit', {
- help: 'Exit the repl',
+ help: 'Exit the REPL',
action: function() {
this.close();
}
@@ -1509,7 +1509,7 @@ function defineDefaultCommands(repl) {
this.output.write(line);
}
this.output.write('\nPress ^C to abort current expression, ' +
- '^D to exit the repl\n');
+ '^D to exit the REPL\n');
this.displayPrompt();
}
});