This commit is contained in:
augustelalande 2025-11-12 18:00:52 -05:00
parent 0ca36a4557
commit dfd3c9a78d
1 changed files with 2 additions and 2 deletions

View File

@ -528,7 +528,7 @@ impl<'a> ParametersSection<'a> {
} }
} }
fn extends_from_section(&mut self, section: &SectionContext<'a>, style: Option<SectionStyle>) { fn extend_from_section(&mut self, section: &SectionContext<'a>, style: Option<SectionStyle>) {
let mut new_entries = parse_parameters( let mut new_entries = parse_parameters(
section.following_lines_str(), section.following_lines_str(),
section.following_range().start(), section.following_range().start(),
@ -562,7 +562,7 @@ impl<'a> DocstringSections<'a> {
| SectionKind::OtherParams | SectionKind::OtherParams
| SectionKind::OtherParameters => { | SectionKind::OtherParameters => {
if let Some(ref mut parameters_section) = docstring_sections.parameters { if let Some(ref mut parameters_section) = docstring_sections.parameters {
parameters_section.extends_from_section(&section, style); parameters_section.extend_from_section(&section, style);
} else { } else {
docstring_sections.parameters = docstring_sections.parameters =
Some(ParametersSection::from_section(&section, style)); Some(ParametersSection::from_section(&section, style));