mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-15 20:40:20 +00:00
Merge pull request #145 from reaperhulk/struct-style
Add struct style info to docs
This commit is contained in:
commit
9f9f550a18
1 changed files with 10 additions and 0 deletions
|
|
@ -62,6 +62,16 @@ Don't name parameters:
|
|||
// Bad
|
||||
long f(long x);
|
||||
|
||||
...unless they're inside a struct:
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
struct my_struct {
|
||||
char *name;
|
||||
int number;
|
||||
...;
|
||||
};
|
||||
|
||||
Don't include stray ``void`` parameters:
|
||||
|
||||
.. code-block:: c
|
||||
|
|
|
|||
Loading…
Reference in a new issue