From 35f0a6af3b48dcf90186eb4d427110965a27f864 Mon Sep 17 00:00:00 2001 From: Andrei Rybak Date: Sun, 26 Mar 2023 18:23:17 +0200 Subject: [PATCH] CODINGSTYLE.md: use dashes instead of hyphens Similarly to commit 062533d0a (CONTRIBUTING.md: use dashes instead of hyphens, 2023-01-14), replace hyphens in prose of CODINGSTYLE.md with dashes to make the rendered Markdown a bit nicer. Signed-off-by: Andrei Rybak --- CODINGSTYLE.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CODINGSTYLE.md b/CODINGSTYLE.md index f10809af2..a00694fda 100644 --- a/CODINGSTYLE.md +++ b/CODINGSTYLE.md @@ -6,7 +6,7 @@ not yet fully consistent to these rules, but following these rules will make sure that no one yells at you about your patches. We have a script that can be used to reformat code to be reasonably close -to these rules; it's in scripts/whitespace.pl - this script requires +to these rules; it's in scripts/whitespace.pl – this script requires clang-format to be installed (which sadly isn't installed by default on any of our platforms; even on Mac where clang is the default compiler). @@ -146,7 +146,7 @@ other editors that implement this coding style, please add them here. In C code we really like them to be at the beginning of a code block, not interspersed in the middle. - in C++ we are a bit less strict about this - but still, try not to go + in C++ we are a bit less strict about this – but still, try not to go crazy. Notably, in C++ the lifetime of a variable often coincides with the lifetime of a resource (e.g. file) and therefore the variable is defined at the place where the resource is needed. @@ -298,7 +298,7 @@ other editors that implement this coding style, please add them here. ### Emacs These lines in your .emacs file should get you fairly close when it comes -to indentation - many of the other rules you have to follow manually +to indentation – many of the other rules you have to follow manually ``` ;; indentation