From ddeaf3fdf31100edfb1eaa04bc16e9adf71e0174 Mon Sep 17 00:00:00 2001 From: Mohammed Keyvanzadeh Date: Mon, 8 Apr 2024 18:51:40 +0330 Subject: [PATCH] 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. --- doc/contributing/cpp-style-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/contributing/cpp-style-guide.md b/doc/contributing/cpp-style-guide.md index ea2a66d34e89b7..f698bf21c7ccf1 100644 --- a/doc/contributing/cpp-style-guide.md +++ b/doc/contributing/cpp-style-guide.md @@ -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.