Skip to content

Commit 93d6840

Browse files
VoltrexKeyvamarco-ippolito
authored andcommitted
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: #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>
1 parent 74a171f commit 93d6840

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/contributing/cpp-style-guide.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Node.js codebase not related to stylistic issues.
1313
* [4 spaces of indentation for statement continuations](#4-spaces-of-indentation-for-statement-continuations)
1414
* [Align function arguments vertically](#align-function-arguments-vertically)
1515
* [Initialization lists](#initialization-lists)
16-
* [CamelCase for methods, functions, and classes](#camelcase-for-methods-functions-and-classes)
16+
* [PascalCase for methods, functions, and classes](#pascalcase-for-methods-functions-and-classes)
1717
* [`snake_case` for local variables and parameters](#snake_case-for-local-variables-and-parameters)
1818
* [`snake_case_` for private class fields](#snake_case_-for-private-class-fields)
1919
* [`snake_case` for C-like structs](#snake_case-for-c-like-structs)
@@ -139,7 +139,7 @@ HandleWrap::HandleWrap(Environment* env,
139139
handle_(handle) {
140140
```
141141
142-
### CamelCase for methods, functions, and classes
142+
### PascalCase for methods, functions, and classes
143143
144144
Exceptions are simple getters/setters, which are named `property_name()` and
145145
`set_property_name()`, respectively.

0 commit comments

Comments
 (0)