aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/contributing.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/contributing.rst b/docs/contributing.rst
index dc8ce453..6a76c705 100644
--- a/docs/contributing.rst
+++ b/docs/contributing.rst
@@ -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