Skip to content

Commit

Permalink
doc: fix heading in cpp style guide
Browse files Browse the repository at this point in the history
Names of c-like structs do not have to end with an underscore.

PR-URL: nodejs#25303
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
kkty authored and refack committed Jan 10, 2019
1 parent 500da17 commit 548e94c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CPP_STYLE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* [CamelCase for methods, functions, and classes](#camelcase-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)
* [snake\_case for C-like structs](#snake_case-for-c-like-structs)
* [Space after `template`](#space-after-template)
* [Memory Management](#memory-management)
* [Memory allocation](#memory-allocation)
Expand Down Expand Up @@ -169,7 +169,7 @@ class Foo {
};
```

### snake\_case\_ for C-like structs
### snake\_case for C-like structs
For plain C-like structs snake_case can be used.

```c++
Expand Down

0 comments on commit 548e94c

Please sign in to comment.