Skip to contentSkip to conversation

docs: packing: Fix a typo in example code.

PATCH Applied Collin Funk 2 participants 2 messages Jun 9, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: packing: Fix a typo in example code.

Fix misspelling of "typedef".

---
 Documentation/core-api/packing.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/core-api/packing.rst +1 -1
index 0ce2078c8e13..f68f1e08fef9 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 12 lines · Collin Funk

Fix misspelling of "typedef".

---
 Documentation/core-api/packing.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/core-api/packing.rst +0 -0
index 0ce2078c8e13..f68f1e08fef9 100644

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