From 92d58e449297373987b04cf8200057fa9cd97b4a Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Fri, 19 Apr 2013 18:25:03 +0000 Subject: [PATCH] CodingStyle changed Comments identation --- CodingStyle.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CodingStyle.md b/CodingStyle.md index c1eb5c4c..66b61a6c 100644 --- a/CodingStyle.md +++ b/CodingStyle.md @@ -40,6 +40,17 @@ General typographic conventions - **Use descriptive names for variables and functions**! Really, these days, when most editors have auto-completion feature, there is no excuse for using short variable names. +- Comments should be indent together with the code, e.g. like this: + + ``` {.wiki} + for (...) { + // The following code finds PGP private key matching the given public key in O(1) + while (key_found) { + (...) + } + } + ``` + File naming conventions -----------------------