From b3c0f66c89acb410d645b829e25a32d8416617c5 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 7 Oct 2020 05:21:11 -0700 Subject: [PATCH] doc: use sentence case for class property Change the one instance of the Class Property heading in our docs to Class property to match style with other headers. PR-URL: https://github.com/nodejs/node/pull/35540 Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen --- doc/api/buffer.md | 2 +- tools/doc/json.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 19fa0dc54fb1e0..605c0ed0af7479 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -752,7 +752,7 @@ console.log(Buffer.isEncoding('')); // Prints: false ``` -### Class Property: `Buffer.poolSize` +### Class property: `Buffer.poolSize` diff --git a/tools/doc/json.js b/tools/doc/json.js index 6dd25d41026f84..5677fd1ce8b664 100644 --- a/tools/doc/json.js +++ b/tools/doc/json.js @@ -437,7 +437,7 @@ const eventPrefix = '^Event: +'; const classPrefix = '^[Cc]lass: +'; const ctorPrefix = '^(?:[Cc]onstructor: +)?`?new +'; const classMethodPrefix = '^Static method: +'; -const maybeClassPropertyPrefix = '(?:Class Property: +)?'; +const maybeClassPropertyPrefix = '(?:Class property: +)?'; const maybeQuote = '[\'"]?'; const notQuotes = '[^\'"]+';