File tree Expand file tree Collapse file tree
Sources/PackageDescription Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99*/
1010
1111extension 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
4744extension 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
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments