doc: fix the typo related to tab
This patch fixes the typo related to tab.
@@ -125,14 +125,17 @@ Multiple return statements in a function are not allowed.
Compliant example::
- int32_t foo(char *ptr) {
+ int32_t foo(char *ptr)
+ {
int32_t ret;
+
if (ptr == NULL) {
ret = -1;
} else {
...
ret = 0;
}
+
return ret;
}
@@ -1032,7 +1035,8 @@ Compliant example::
#define SHOWCASE_SIZE 32U
- void showcase(uint32_t array_source[SHOWCASE_SIZE]) {
+ void showcase(uint32_t array_source[SHOWCASE_SIZE])
+ {
uint32_t num_bytes = SHOWCASE_SIZE * sizeof(uint32_t);
printf("num_bytes %d \n", num_bytes);
@@ -1044,7 +1048,8 @@ Compliant example::
#define SHOWCASE_SIZE 32U
- void showcase(uint32_t array_source[SHOWCASE_SIZE]) {
+ void showcase(uint32_t array_source[SHOWCASE_SIZE])
+ {
uint32_t num_bytes = sizeof(array_source);
printf("num_bytes %d \n", num_bytes);
@@ -1987,6 +1992,7 @@ Compliant example::
default:
/* showcase */
break;
+ }
.. rst-class:: non-compliant-code
@@ -2010,6 +2016,7 @@ Compliant example::
default:
/* showcase */
break;
+ }
TY-10: const qualifier shall not be discarded in cast operation
