Skip to content

Commit

Permalink
[gardening] improve markdown formatting in documentation comments
Browse files Browse the repository at this point in the history
  • Loading branch information
WowbaggersLiquidLunch committed May 9, 2021
1 parent 4585260 commit 13d808f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@
*/

extension Version: ExpressibleByStringLiteral {

/// Initializes a version struct with the provided string literal.
///
/// - Parameters:
/// - version: A string literal to use for creating a new version struct.
/// - Parameter version: A string literal to use for creating a new version struct.
public init(stringLiteral value: String) {
if let version = Version(value) {
self = version
Expand Down Expand Up @@ -45,11 +42,8 @@ extension Version: ExpressibleByStringLiteral {
}

extension Version {

/// Initializes a version struct with the provided version.
///
/// - Parameters:
/// - version: A version object to use for creating a new version struct.
/// - Parameter version: A version object to use for creating a new version struct.
public init(_ version: Version) {
major = version.major
minor = version.minor
Expand Down
10 changes: 5 additions & 5 deletions Sources/PackageDescription/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public struct Version {
/// Initializes a version struct with the provided components of a semantic version.
///
/// - Parameters:
/// - major: The major version number.
/// - minor: The minor version number.
/// - patch: The patch version number.
/// - prereleaseIdentifiers: The pre-release identifier.
/// - buildMetaDataIdentifiers: Build metadata that identifies a build.
/// - major: The major version number.
/// - minor: The minor version number.
/// - patch: The patch version number.
/// - prereleaseIdentifiers: The pre-release identifier.
/// - buildMetaDataIdentifiers: Build metadata that identifies a build.
public init(
_ major: Int,
_ minor: Int,
Expand Down

0 comments on commit 13d808f

Please sign in to comment.