From 65866c69d6e60f51ed3ae657d21d799169886d47 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 1 Dec 2020 14:15:16 +1100 Subject: Fix a little typo (spelling) in the styleguide --- docs/styleguide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/styleguide.md b/docs/styleguide.md index 22c5157f..a0856c46 100644 --- a/docs/styleguide.md +++ b/docs/styleguide.md @@ -146,7 +146,7 @@ if (answer) else if (again) continue; else - goto bowl_of_petunias; + break; ``` When the statements that form control flow constructs are complex (e.g. more than just a simple assignment or jump) or need explanatory comments you should use braces. @@ -171,7 +171,7 @@ Try to separate such changes into a single, clean-up only commit to reduce noise When writing your code consistency with the surrounding codebase is favoured. -Don't shy away from leaving (sinlge) blank lines to separate different groups of related statements. +Don't shy away from leaving (single) blank lines to separate different groups of related statements. They can be a great asset to structure the flow of a method. ```c -- cgit v1.2.3