Commit 79c70c30 authored by Jonathan Corbet's avatar Jonathan Corbet

docs: Remove space-before-label guidance from CodingStyle

Recent discussion has made it clear that there is no community consensus on
this particular rule.  Remove it now, lest it inspire yet another set of
unwanted "cleanup" patches.

This partially reverts 865a1caa (CodingStyle: Clarify and complete
chapter 7).

Cc: Jean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent dca22a63
...@@ -451,9 +451,6 @@ Avoid using GW-BASIC names like ``err1:`` and ``err2:``, as you would have to ...@@ -451,9 +451,6 @@ Avoid using GW-BASIC names like ``err1:`` and ``err2:``, as you would have to
renumber them if you ever add or remove exit paths, and they make correctness renumber them if you ever add or remove exit paths, and they make correctness
difficult to verify anyway. difficult to verify anyway.
It is advised to indent labels with a single space (not tab), so that
``diff -p`` does not confuse labels with functions.
The rationale for using gotos is: The rationale for using gotos is:
- unconditional statements are easier to understand and follow - unconditional statements are easier to understand and follow
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment