mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
docs: kdoc_item: fix a typo on sections_start_lines
Currently, there are 15 occurrences of section?_start_lines, with 10 using the plural way. This is an issue, as, while kdoc_output works with KdocItem, the term doesn't match its init value. The variable sections_start_lines stores multiple sections, so placing it in plural is its correct way. So, ensure that, on all parts of kdoc, this will be referred as sections_start_lines. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <d1e0f1d3f80df41c11a1bbde6a12fd9468bc3813.1773823995.git.mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Jonathan Corbet
parent
99364ba7f8
commit
e394855fcc
@@ -140,7 +140,7 @@ class KernelEntry:
|
||||
self.parametertypes = {}
|
||||
self.parameterdesc_start_lines = {}
|
||||
|
||||
self.section_start_lines = {}
|
||||
self.sections_start_lines = {}
|
||||
self.sections = {}
|
||||
|
||||
self.anon_struct_union = False
|
||||
@@ -220,7 +220,7 @@ class KernelEntry:
|
||||
self.sections[name] += '\n' + contents
|
||||
else:
|
||||
self.sections[name] = contents
|
||||
self.section_start_lines[name] = self.new_start_line
|
||||
self.sections_start_lines[name] = self.new_start_line
|
||||
self.new_start_line = 0
|
||||
|
||||
# self.config.log.debug("Section: %s : %s", name, pformat(vars(self)))
|
||||
@@ -316,7 +316,7 @@ class KernelDoc:
|
||||
for section in ["Description", "Return"]:
|
||||
if section in sections and not sections[section].rstrip():
|
||||
del sections[section]
|
||||
item.set_sections(sections, self.entry.section_start_lines)
|
||||
item.set_sections(sections, self.entry.sections_start_lines)
|
||||
item.set_params(self.entry.parameterlist, self.entry.parameterdescs,
|
||||
self.entry.parametertypes,
|
||||
self.entry.parameterdesc_start_lines)
|
||||
|
||||
Reference in New Issue
Block a user