From 3f899a974fb6bbe2f5ca42e96d9f9c7309d11aa4 Mon Sep 17 00:00:00 2001 From: "jazz (gitea)" Date: Mon, 9 Mar 2026 13:05:32 -0500 Subject: [PATCH] very formatting stuff --- README.md | 2 +- STYLE.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 770a518..088ee36 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ doing a bunch of bug fixes anyway. ## Code Everything is in [src/](src). -A mostly untouched copy of [scott's original code](https://git.therats.win/scott/threaded_network_chat) is also in [old/](old). +A mostly untouched copy of [Scott's original code](https://git.therats.win/scott/threaded_network_chat) is also in [old/](old). A reformatted version of that code is also in [modified-example.cc](modified-example.cc) but it can be ignored. ## Build diff --git a/STYLE.md b/STYLE.md index dfc3333..5c5711b 100644 --- a/STYLE.md +++ b/STYLE.md @@ -60,7 +60,7 @@ The length of a function name, variable name, et cetera should be directly propo #### Don't -- abbreviate global variables, +- abbreviate global variables **EVER**, - mention the data type in a variable name, - use a full word where an abbreviation will do - (especially not in a variable that will die 5 lines later), @@ -70,7 +70,7 @@ The length of a function name, variable name, et cetera should be directly propo #### Do - abbreviate extremely short-lived variables to one letter, - - e.g. `for (int index=0, index<10, i++)` -> `for (int i=0, i<10, i++)` + - e.g. `for (int index = 0, index < 10, i++)` -> `for (int i = 0, i < 10, i++)` - break any rule if following it ruins the readability ## Source File layout @@ -120,4 +120,3 @@ div_numb(int n, int d) } ``` -