Skip to content

Commit 13d808f

Browse files
[gardening] improve markdown formatting in documentation comments
1 parent 4585260 commit 13d808f

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

Sources/PackageDescription/Version+StringLiteralConvertible.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@
99
*/
1010

1111
extension Version: ExpressibleByStringLiteral {
12-
1312
/// Initializes a version struct with the provided string literal.
14-
///
15-
/// - Parameters:
16-
/// - version: A string literal to use for creating a new version struct.
13+
/// - Parameter version: A string literal to use for creating a new version struct.
1714
public init(stringLiteral value: String) {
1815
if let version = Version(value) {
1916
self = version
@@ -45,11 +42,8 @@ extension Version: ExpressibleByStringLiteral {
4542
}
4643

4744
extension Version {
48-
4945
/// Initializes a version struct with the provided version.
50-
///
51-
/// - Parameters:
52-
/// - version: A version object to use for creating a new version struct.
46+
/// - Parameter version: A version object to use for creating a new version struct.
5347
public init(_ version: Version) {
5448
major = version.major
5549
minor = version.minor

Sources/PackageDescription/Version.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ public struct Version {
5555
/// Initializes a version struct with the provided components of a semantic version.
5656
///
5757
/// - Parameters:
58-
/// - major: The major version number.
59-
/// - minor: The minor version number.
60-
/// - patch: The patch version number.
61-
/// - prereleaseIdentifiers: The pre-release identifier.
62-
/// - buildMetaDataIdentifiers: Build metadata that identifies a build.
58+
/// - major: The major version number.
59+
/// - minor: The minor version number.
60+
/// - patch: The patch version number.
61+
/// - prereleaseIdentifiers: The pre-release identifier.
62+
/// - buildMetaDataIdentifiers: Build metadata that identifies a build.
6363
public init(
6464
_ major: Int,
6565
_ minor: Int,

0 commit comments

Comments
 (0)