diff --git a/Changelog.md b/Changelog.md index 59a5a259..693e9ac6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed listing of function parameters, when generating CommonMark documentation. + #170 by @domcorvasce. + - Fixed version number for swift-doc command. #159 by @mattt. diff --git a/Sources/swift-doc/Supporting Types/Components/Documentation.swift b/Sources/swift-doc/Supporting Types/Components/Documentation.swift index f1324288..ad96e1aa 100644 --- a/Sources/swift-doc/Supporting Types/Components/Documentation.swift +++ b/Sources/swift-doc/Supporting Types/Components/Documentation.swift @@ -49,7 +49,7 @@ struct Documentation: Component { Section { Heading { "Parameters" } List(of: documentation.parameters) { parameter in - Fragment { "\(parameter.name): \(parameter.description)" } + Fragment { "\(parameter.name): \(parameter.content)" } } } }