From f8763bb077db2f0be74e353c0b4f9e353c0fffa8 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Thu, 7 Mar 2019 01:03:53 +0100 Subject: benchmark,doc,lib,test: capitalize comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt Reviewed-By: Michaƫl Zasso --- doc/api/errors.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/api/errors.md') 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!'); }); -- cgit v1.2.3