From 789046f69457fb58560f4dbdca32ca5733b30fb1 Mon Sep 17 00:00:00 2001 From: emma Date: Mon, 15 Jul 2024 13:03:30 -0600 Subject: [PATCH] STYLE: removes do while constraint & reword indentation rule --- STYLE | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/STYLE b/STYLE index 5560aa3..5a236a0 100644 --- a/STYLE +++ b/STYLE @@ -1,5 +1,5 @@ - Braces are mandatory for all control flow -- Indentation should be kept to a minimum +- Nested indentation should be kept to a minimum - Empty lines should be placed between different kinds of statements: int t; @@ -49,11 +49,6 @@ use sysexits::{ EX_DATAERR, EX_IOERR, EX_UNAVAILABLE, EX_USAGE }; if (!argc < 0) { usage(program_name); } -- If a do while loop in C is longer than ~25 lines, place the while statement - in a comment after the opening brace: - -do { /* while(count == 0 || --count > 0); */ - -- Copyright © 2024 Emma Tebibyte