mirror of https://github.com/astral-sh/ruff
typo
This commit is contained in:
parent
0ca36a4557
commit
dfd3c9a78d
|
|
@ -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(§ion, style);
|
parameters_section.extend_from_section(§ion, style);
|
||||||
} else {
|
} else {
|
||||||
docstring_sections.parameters =
|
docstring_sections.parameters =
|
||||||
Some(ParametersSection::from_section(§ion, style));
|
Some(ParametersSection::from_section(§ion, style));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue