* [PATCH] kernel-doc: Fix example in Nested structs/unions
@ 2020-12-07 21:00 Ben Widawsky
2020-12-08 17:23 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Ben Widawsky @ 2020-12-07 21:00 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc; +Cc: linux-kernel, Ben Widawsky
Add missing ';' as well as fixes the indent for the first struct.
Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
---
Documentation/doc-guide/kernel-doc.rst | 6 +++---
1 file 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;
--
2.29.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kernel-doc: Fix example in Nested structs/unions
2020-12-07 21:00 [PATCH] kernel-doc: Fix example in Nested structs/unions Ben Widawsky
@ 2020-12-08 17:23 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2020-12-08 17:23 UTC (permalink / raw)
To: Ben Widawsky; +Cc: linux-doc, linux-kernel
On Mon, 7 Dec 2020 13:00:27 -0800
Ben Widawsky <ben.widawsky@intel.com> wrote:
> Add missing ';' as well as fixes the indent for the first struct.
>
> Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
> ---
> Documentation/doc-guide/kernel-doc.rst | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-08 17:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 21:00 [PATCH] kernel-doc: Fix example in Nested structs/unions Ben Widawsky
2020-12-08 17:23 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).