Skip to contentSkip to conversation

kernel-doc: Fix example in Nested structs/unions

PATCH Applied Ben Widawsky 2 participants 2 messages Dec 7, 2020 – Dec 8, 2020 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-doc: Fix example in Nested structs/unions

Add missing ';' as well as fixes the indent for the first struct.

---
 Documentation/doc-guide/kernel-doc.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/doc-guide/kernel-doc.rst +3 -3
index 52a87ab4c99f..79aaa55d6bcf 100644
@@ -247,12 +247,12 @@ It is possible to document nested structs and unions, like::
           struct {
             int memb1;
             int memb2;
-        }
+          };
           struct {
             void *memb3;
             int memb4;
-          }
-        }
+          };
+        };
         union {
           struct {
             int memb1;
Signature · 1 line
2.29.2
maintainer Applied
#1 lore raw
Quoted 6 lines · On Mon, 7 Dec 2020 13:00:27 -0800 Ben Widawsky <[email protected]> wrote:

Add missing ';' as well as fixes the indent for the first struct.

---
 Documentation/doc-guide/kernel-doc.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

jon