Docs: Update coding guidelines
Explicitly allow for variables to be defined at the
beginning of a scope, not necessarily of the function
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I6331fdd8e1fa15a1f9f23ac8e6187f0ab817c840
diff --git a/docs/contributing/coding_guide.rst b/docs/contributing/coding_guide.rst
index e9f46f9..8886008 100644
--- a/docs/contributing/coding_guide.rst
+++ b/docs/contributing/coding_guide.rst
@@ -52,7 +52,7 @@
- Use curly braces ``{ }`` for one line statement bodies also.
- Put open curly brace in the line below the function header.
- Order function parameters so that input params are before output params.
-- Declare local variables at the beginning of the function.
+- Declare local variables at the beginning of a scope.
- Define macros in all caps i.e. ``CAPITAL_WITH_UNDERSCORE``.
- Use typedefs **ONLY** for function prototype declarations.
- Type definitions in ``lower_case_with_underscore`` ended by ``_t``.