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

Commit 7b37a91

Browse files
author
Dom Corvasce
authored
Fix Markdown listing of function parameters (#171)
1 parent 4c0c559 commit 7b37a91

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12+
- Fixed listing of function parameters, when generating CommonMark documentation.
13+
#170 by @domcorvasce.
14+
1215
- Fixed version number for swift-doc command.
1316
#159 by @mattt.
1417

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct Documentation: Component {
4949
Section {
5050
Heading { "Parameters" }
5151
List(of: documentation.parameters) { parameter in
52-
Fragment { "\(parameter.name): \(parameter.description)" }
52+
Fragment { "\(parameter.name): \(parameter.content)" }
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)