File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed
Sources/PackageDescription Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
11
11
extension Version : ExpressibleByStringLiteral {
12
-
13
12
/// 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.
17
14
public init ( stringLiteral value: String ) {
18
15
if let version = Version ( value) {
19
16
self = version
@@ -45,11 +42,8 @@ extension Version: ExpressibleByStringLiteral {
45
42
}
46
43
47
44
extension Version {
48
-
49
45
/// 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.
53
47
public init ( _ version: Version ) {
54
48
major = version. major
55
49
minor = version. minor
Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ public struct Version {
55
55
/// Initializes a version struct with the provided components of a semantic version.
56
56
///
57
57
/// - 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.
63
63
public init (
64
64
_ major: Int ,
65
65
_ minor: Int ,
You can’t perform that action at this time.
0 commit comments