summaryrefslogtreecommitdiff
path: root/doc/api/errors.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-07 01:03:53 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-10 00:44:40 +0100
commitf8763bb077db2f0be74e353c0b4f9e353c0fffa8 (patch)
treec73128074daa65d2e72e4d2a86a5b08059888144 /doc/api/errors.md
parent01a5300f3f4f788a043f6b5fe72e2b7b641dfb6c (diff)
downloadandroid-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.tar.gz
android-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.tar.bz2
android-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.zip
benchmark,doc,lib,test: capitalize comments
PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'doc/api/errors.md')
-rw-r--r--doc/api/errors.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index b9d2642149..55ec282671 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -158,7 +158,7 @@ const fs = require('fs');
try {
fs.readFile('/some/file/that/does-not-exist', (err, data) => {
- // mistaken assumption: throwing here...
+ // Mistaken assumption: throwing here...
if (err) {
throw err;
}
@@ -217,7 +217,7 @@ a string representing the location in the code at which
```js
const myObject = {};
Error.captureStackTrace(myObject);
-myObject.stack; // similar to `new Error().stack`
+myObject.stack; // Similar to `new Error().stack`
```
The first line of the trace will be prefixed with
@@ -316,7 +316,7 @@ will not be present in the stack traces:
const cheetahify = require('./native-binding.node');
function makeFaster() {
- // cheetahify *synchronously* calls speedy.
+ // `cheetahify()` *synchronously* calls speedy.
cheetahify(function speedy() {
throw new Error('oh no!');
});