mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
doc: correct naming convention in C++ style guide
The code and documentation uses PascalCase for C++ functions, methods, and classes but the C++ style guide incorrectly says to use camelCase. PR-URL: https://github.com/nodejs/node/pull/52424 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
parent
0d1e64f64c
commit
7b01bfb2be
@ -13,7 +13,7 @@ Node.js codebase not related to stylistic issues.
|
||||
* [4 spaces of indentation for statement continuations](#4-spaces-of-indentation-for-statement-continuations)
|
||||
* [Align function arguments vertically](#align-function-arguments-vertically)
|
||||
* [Initialization lists](#initialization-lists)
|
||||
* [CamelCase for methods, functions, and classes](#camelcase-for-methods-functions-and-classes)
|
||||
* [PascalCase for methods, functions, and classes](#pascalcase-for-methods-functions-and-classes)
|
||||
* [`snake_case` for local variables and parameters](#snake_case-for-local-variables-and-parameters)
|
||||
* [`snake_case_` for private class fields](#snake_case_-for-private-class-fields)
|
||||
* [`snake_case` for C-like structs](#snake_case-for-c-like-structs)
|
||||
@ -139,7 +139,7 @@ HandleWrap::HandleWrap(Environment* env,
|
||||
handle_(handle) {
|
||||
```
|
||||
|
||||
### CamelCase for methods, functions, and classes
|
||||
### PascalCase for methods, functions, and classes
|
||||
|
||||
Exceptions are simple getters/setters, which are named `property_name()` and
|
||||
`set_property_name()`, respectively.
|
||||
|
Loading…
Reference in New Issue
Block a user