From ed3d15bc669c8ea2c2acbdec6a1da980e8006a92 Mon Sep 17 00:00:00 2001 From: Laurens Van Houtven <_@lvh.cc> Date: Mon, 23 Jun 2014 13:50:35 +0200 Subject: Use C-style comments instead of C++-style comments --- docs/development/submitting-patches.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs') 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 -- cgit v1.2.3