Skip to content

Commit 3a1969e

Browse files
bc-leeMaxDesiatov
authored andcommitted
Fix missing from arguments in PackageDependency's comments (#6876)
`.upToNextMajor` and `.upToNextMinor` need a `from` argument, but it was missing in the comments.
1 parent fe5b366 commit 3a1969e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/PackageDescription/PackageDependency.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,14 +424,14 @@ extension Package.Dependency {
424424
/// versions between 1.0.0 and 2.0.0
425425
///
426426
/// ```swift
427-
/// .package(url: "https://example.com/example-package.git", .upToNextMajor("1.0.0"),
427+
/// .package(url: "https://example.com/example-package.git", .upToNextMajor(from: "1.0.0"),
428428
/// ```
429429
///
430430
/// The following example allows the Swift Package Manager to pick
431431
/// versions between 1.0.0 and 1.1.0
432432
///
433433
/// ```swift
434-
/// .package(url: "https://example.com/example-package.git", .upToNextMinor("1.0.0"),
434+
/// .package(url: "https://example.com/example-package.git", .upToNextMinor(from: "1.0.0"),
435435
/// ```
436436
///
437437
/// - Parameters:
@@ -623,14 +623,14 @@ extension Package.Dependency {
623623
/// versions between 1.0.0 and 2.0.0
624624
///
625625
/// ```swift
626-
/// .package(id: "scope.name", .upToNextMajor("1.0.0"),
626+
/// .package(id: "scope.name", .upToNextMajor(from: "1.0.0"),
627627
/// ```
628628
///
629629
/// The following example allows the Swift Package Manager to pick
630630
/// versions between 1.0.0 and 1.1.0
631631
///
632632
/// ```swift
633-
/// .package(id: "scope.name", .upToNextMinor("1.0.0"),
633+
/// .package(id: "scope.name", .upToNextMinor(from: "1.0.0"),
634634
/// ```
635635
///
636636
/// - Parameters:

0 commit comments

Comments
 (0)