docs: packing: Fix a typo in example code.
Subsystems (4)
PATCH 1/1 docs: packing: Fix a typo in example code.
Fix misspelling of "typedef".
Signed-off-by Collin Funk <[email protected]>
--- Documentation/core-api/packing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/core-api/packing.rst +1 -1
@@ -319,7 +319,7 @@ Here is an example of how to use the fields APIs: #define SIZE 13 - typdef struct __packed { u8 buf[SIZE]; } packed_buf_t; + typedef struct __packed { u8 buf[SIZE]; } packed_buf_t; static const struct packed_field_u8 fields[] = { PACKED_FIELD(100, 90, struct data, field1),
Signature · 1 line
2.49.0
Quoted 12 lines · Collin Funk
Fix misspelling of "typedef".
Signed-off-by Collin Funk <[email protected]>--- Documentation/core-api/packing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/core-api/packing.rst +0
-0
Documentation/core-api/packing.rst Here is an example of how to use the fields APIs: · line 323
Quoted 6 lines
Documentation/core-api/packing.rst +1
-1@@ -319,7 +319,7 @@ Here is an example of how to use the fields APIs: #define SIZE 13 - typdef struct __packed { u8 buf[SIZE]; } packed_buf_t; + typedef struct __packed { u8 buf[SIZE]; } packed_buf_t;
Applied, thanks.
jon