aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorLaurens Van Houtven <_@lvh.cc>2014-06-23 13:50:35 +0200
committerLaurens Van Houtven <_@lvh.cc>2014-06-23 13:50:35 +0200
commited3d15bc669c8ea2c2acbdec6a1da980e8006a92 (patch)
treea031659bda7a1afca34b3432be9973308d2053ed /docs
parent7d2c74e4d36de4b70e72f2f8d6a7a60e86f80e60 (diff)
downloadcryptography-ed3d15bc669c8ea2c2acbdec6a1da980e8006a92.tar.gz
cryptography-ed3d15bc669c8ea2c2acbdec6a1da980e8006a92.tar.bz2
cryptography-ed3d15bc669c8ea2c2acbdec6a1da980e8006a92.zip
Use C-style comments instead of C++-style comments
Diffstat (limited to 'docs')
-rw-r--r--docs/development/submitting-patches.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/development/submitting-patches.rst b/docs/development/submitting-patches.rst
index b7f43283..3eea1dd3 100644
--- a/docs/development/submitting-patches.rst
+++ b/docs/development/submitting-patches.rst
@@ -82,9 +82,9 @@ Don't name parameters:
.. code-block:: c
- // Good
+ /* Good */
long f(long);
- // Bad
+ /* Bad */
long f(long x);
...unless they're inside a struct:
@@ -101,16 +101,16 @@ Include ``void`` if the function takes no arguments:
.. code-block:: c
- // Good
+ /* Good */
long f(void);
- // Bad
+ /* Bad */
long f();
Wrap lines at 80 characters like so:
.. code-block:: c
- // Pretend this went to 80 characters
+ /* Pretend this went to 80 characters */
long f(long, long,
int *)
@@ -118,9 +118,9 @@ Include a space after commas between parameters:
.. code-block:: c
- // Good
+ /* Good */
long f(int, char *)
- // Bad
+ /* Bad */
long f(int,char *)
Values set by ``#define`` should be assigned the appropriate type. If you see