Skip to content

Commit 3e68d21

Browse files
Trottcodebytere
authored andcommittedJul 8, 2020
doc: use sentence-case for headings in docs
PR-URL: #33889 Backport-PR-URL: #33964 Refs: https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings Refs: https://docs.microsoft.com/en-us/style-guide/capitalization Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 83c9364 commit 3e68d21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+336
-332
lines changed
 

‎doc/api/addons.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# C++ Addons
1+
# C++ addons
22

33
<!--introduced_in=v0.10.0-->
44
<!-- type=misc -->
@@ -395,7 +395,7 @@ only the symbols exported by Node.js will be available.
395395
source image. Using this option, the Addon will have access to the full set of
396396
dependencies.
397397

398-
### Loading Addons using `require()`
398+
### Loading addons using `require()`
399399

400400
The filename extension of the compiled Addon binary is `.node` (as opposed
401401
to `.dll` or `.so`). The [`require()`][require] function is written to look for
@@ -410,7 +410,7 @@ there is a file `addon.js` in the same directory as the binary `addon.node`,
410410
then [`require('addon')`][require] will give precedence to the `addon.js` file
411411
and load it instead.
412412

413-
## Native Abstractions for Node.js
413+
## Native abstractions for Node.js
414414

415415
Each of the examples illustrated in this document make direct use of the
416416
Node.js and V8 APIs for implementing Addons. The V8 API can, and has, changed

‎doc/api/async_hooks.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Async Hooks
1+
# Async hooks
22

33
<!--introduced_in=v8.1.0-->
44

@@ -127,7 +127,7 @@ class MyAddedCallbacks extends MyAsyncCallbacks {
127127
const asyncHook = async_hooks.createHook(new MyAddedCallbacks());
128128
```
129129

130-
##### Error Handling
130+
##### Error handling
131131

132132
If any `AsyncHook` callbacks throw, the application will print the stack trace
133133
and exit. The exit path does follow that of an uncaught exception, but
@@ -201,7 +201,7 @@ be called again until enabled.
201201

202202
For API consistency `disable()` also returns the `AsyncHook` instance.
203203

204-
#### Hook Callbacks
204+
#### Hook callbacks
205205

206206
Key events in the lifetime of asynchronous events have been categorized into
207207
four areas: instantiation, before/after the callback is called, and when the
@@ -631,7 +631,7 @@ only on chained promises. That means promises not created by `then()`/`catch()`
631631
will not have the `before` and `after` callbacks fired on them. For more details
632632
see the details of the V8 [PromiseHooks][] API.
633633

634-
## JavaScript Embedder API
634+
## JavaScript embedder API
635635

636636
Library developers that handle their own asynchronous resources performing tasks
637637
like I/O, connection pooling, or managing callback queues may use the

0 commit comments

Comments
 (0)
Please sign in to comment.