We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e44c1d3 commit f64e080Copy full SHA for f64e080
1 file changed
CODECONVENTIONS.md
@@ -52,13 +52,19 @@ general guidelines are:
52
- You can use int/uint, but remember that they may be 16-bits wide.
53
- If in doubt, use mp_int_t/mp_uint_t.
54
55
+Comments:
56
+- Be concise and only write comments for things that are not obvious.
57
+- Use `// ` prefix, NOT `/* ... */`. No extra fluff.
58
+
59
Examples
60
--------
61
-Braces, spaces and names:
62
+Braces, spaces, names and comments:
63
64
#define TO_ADD (123)
65
66
+ // This function will always recurse indefinitely and is only used to show
67
+ // coding style
68
int foo_function(int x, int some_value) {
69
if (x < some_value) {
70
foo(some_value, x);
0 commit comments