Re: [PATCH] docs: packing: Fix a typo in example code.

From
Jonathan Corbet <corbet@lwn.net>
Date
2025-06-09 18:30:09
Also in
linux-doc, lkml
Reply to
Collin Funk, 2025-06-09
Collin Funk [off-list ref] writes:
quoted hunk ↗ jump to hunk
Fix misspelling of "typedef".

Signed-off-by: Collin Funk <redacted>
---
 Documentation/core-api/packing.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/core-api/packing.rst b/Documentation/core-api/packing.rst
index 0ce2078c8e13..f68f1e08fef9 100644
--- a/Documentation/core-api/packing.rst
+++ b/Documentation/core-api/packing.rst
@@ -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
Thread (2 messages) 2 messages, 2 authors, last reply 2025-06-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help