Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 275978f

Browse files
committed
Update use of CommonMark builder interface
1 parent b7f1654 commit 275978f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Sources/swift-doc/Supporting Types/Components/Abstract.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ struct Abstract: Component {
1919
if let summary = symbol.documentation?.summary {
2020
return Fragment {
2121
List.Item {
22-
Paragraph {
23-
Link(urlString: path(for: symbol, with: baseURL), text: symbol.id.description)
24-
Text { ":" }
25-
}
26-
2722
Fragment {
23+
Paragraph {
24+
Link(urlString: path(for: symbol, with: baseURL), text: symbol.id.description + ":")
25+
}
26+
2827
summary
2928
}
3029
}

0 commit comments

Comments
 (0)