1. shlomif_rsip
  2. shlomi-fish-homepage

Commits

shl...@iglu.org.il@cec68495-dca5-4e2b-845c-11fdaaa4f967  committed 78c2318

Add leading space to comments.

  • Participants
  • Parent commits e13d221
  • Branches default

Comments (0)

Files changed (1)

File t2/open-source/resources/how-to-contribute-to-my-projects/HACKING.txt

View file
 }
 ----------------
 
+Comments should have an empty space after the comment leader
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Comments in Perl, C, Python, Ruby, and other languages should have an
+empty space after the comment leader.
+
+Bad:
+
+----------------
+#Print a value.
+print "Hello\n";
+/*Print a value.*/
+printf("%s\n", "Hello");
+----------------
+
+Better:
+
+----------------
+# Print a value.
+print "Hello\n";
+/* Print a value. */
+printf("%s\n", "Hello");
+----------------
+