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 <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Rich Trott
2020-10-07 05:21:11 -07:00
parent c8b950a7af
commit 936ce85c0b
2 changed files with 2 additions and 2 deletions

View File

@@ -765,7 +765,7 @@ console.log(Buffer.isEncoding(''));
// Prints: false
```
### Class Property: `Buffer.poolSize`
### Class property: `Buffer.poolSize`
<!-- YAML
added: v0.11.3
-->

View File

@@ -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 = '[^\'"]+';