From a86705c113a398e07e78838ad15bbef3f909e43e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 3 Apr 2024 13:21:28 -0700 Subject: [PATCH] doc: replace "below" with "following" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref: https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/b/below PR-URL: https://github.com/nodejs/node/pull/52315 Refs: https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/b/below Reviewed-By: Geoffrey Booth Reviewed-By: Moshe Atlow Reviewed-By: Ulises Gascón Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum Reviewed-By: Tobias Nießen --- doc/api/addons.md | 4 ++-- doc/api/modules.md | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/api/addons.md b/doc/api/addons.md index 41b0fe31d301e3..08172a9ae9c51f 100644 --- a/doc/api/addons.md +++ b/doc/api/addons.md @@ -845,8 +845,8 @@ class MyObject : public node::ObjectWrap { ``` In `myobject.cc`, implement the various methods that are to be exposed. -Below, the method `plusOne()` is exposed by adding it to the constructor's -prototype: +In the following code, the method `plusOne()` is exposed by adding it to the +constructor's prototype: ```cpp // myobject.cc diff --git a/doc/api/modules.md b/doc/api/modules.md index e38bca4f3cee54..aa0bfd35f9e7af 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -42,7 +42,8 @@ In this example, the variable `PI` is private to `circle.js`. The `module.exports` property can be assigned a new value (such as a function or object). -Below, `bar.js` makes use of the `square` module, which exports a Square class: +In the following code, `bar.js` makes use of the `square` module, which exports +a Square class: ```js const Square = require('./square.js'); @@ -123,7 +124,7 @@ enough to support reasonable directory structures. Package manager programs such as `dpkg`, `rpm`, and `npm` will hopefully find it possible to build native packages from Node.js modules without modification. -Below we give a suggested directory structure that could work: +In the following, we give a suggested directory structure that could work: Let's say that we wanted to have the folder at `/usr/lib/node//` hold the contents of a