summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorBen Widawsky <ben.widawsky@intel.com>2020-12-07 22:00:27 +0100
committerJonathan Corbet <corbet@lwn.net>2020-12-08 18:23:17 +0100
commit9113584012847a7573d191b4544e1f6ed12a8142 (patch)
treec18b113e08f2005bdce6b7dd39948b209fd079c1 /Documentation
parentdocs: clean up sysctl/kernel: titles, version (diff)
downloadlinux-9113584012847a7573d191b4544e1f6ed12a8142.tar.xz
linux-9113584012847a7573d191b4544e1f6ed12a8142.zip
kernel-doc: Fix example in Nested structs/unions
Add missing ';' as well as fixes the indent for the first struct. Signed-off-by: Ben Widawsky <ben.widawsky@intel.com> Link: https://lore.kernel.org/r/20201207210027.1049346-1-ben.widawsky@intel.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/doc-guide/kernel-doc.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/doc-guide/kernel-doc.rst b/Documentation/doc-guide/kernel-doc.rst
index 52a87ab4c99f..79aaa55d6bcf 100644
--- a/Documentation/doc-guide/kernel-doc.rst
+++ b/Documentation/doc-guide/kernel-doc.rst
@@ -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;