File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -150,16 +150,13 @@ public struct DocumentationComment {
150
150
private init ( parameterMarkup markup: Markup ) {
151
151
// Extract the first paragraph as the brief summary. It will *not* be included in the body
152
152
// nodes.
153
- let remainingChildren : DropFirstSequence < MarkupChildren >
154
153
if let firstParagraph = markup. child ( through: [ ( 0 , Paragraph . self) ] ) {
155
154
briefSummary = firstParagraph. detachedFromParent as? Paragraph
156
- remainingChildren = markup. children. dropFirst ( )
155
+ bodyNodes = markup. children. dropFirst ( ) . map { $0 . detachedFromParent }
157
156
} else {
158
157
briefSummary = nil
159
- remainingChildren = markup. children. dropFirst ( 0 )
158
+ bodyNodes = markup. children. map { $0 . detachedFromParent }
160
159
}
161
-
162
- bodyNodes = remainingChildren. map ( \. detachedFromParent)
163
160
}
164
161
165
162
/// Extracts parameter fields in an outlined parameters list (i.e., `- Parameters:` containing a
You can’t perform that action at this time.
0 commit comments