{"thread":{"id":"30802","subject":"[PATCH v2] CodingGuidelines: Added note about position of 'else' in C programs.","startedAt":"2012-06-14T01:42:43Z","lastAt":"2012-06-14T01:42:43Z","messageCount":1,"participants":["Leila Muhtasib"],"isPatch":true,"patchVersion":2,"patchTotal":null},"messages":[{"id":"193611","messageId":"1339638163-33870-1-git-send-email-muhtasib@gmail.com","threadId":"30802","inReplyTo":null,"subject":"[PATCH v2] CodingGuidelines: Added note about position of 'else' in C programs.","fromName":"Leila Muhtasib","fromEmail":"muhtasib@gmail.com","sentAt":"2012-06-14T01:42:43Z","receivedAt":"2012-06-14T01:42:43Z","isPatch":true,"sender":{"key":"muhtasib@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1618875?v=4"},"body":"During code review of some patches, it was noted that 'else' should\nappear on the same line as the closing '}' of its 'if' block.\n\nSigned-off-by: Leila Muhtasib <muhtasib@gmail.com>\n---\n Documentation/CodingGuidelines |    3 +++\n 1 files changed, 3 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines\nindex 4557711..99588f0 100644\n--- a/Documentation/CodingGuidelines\n+++ b/Documentation/CodingGuidelines\n@@ -123,6 +123,9 @@ For C programs:\n \n  - We try to avoid assignments inside if().\n \n+ - \"else\" should be positioned on the same line as the closing\n+   \"}\" of its \"if\" block.\n+\n  - Try to make your code understandable.  You may put comments\n    in, but comments invariably tend to stale out when the code\n    they were describing changes.  Often splitting a function\n-- \n1.7.7.5 (Apple Git-26)\n"}]}