Skip to content

Commit 29e5620

Browse files
authored
Delete wrong doc comment for Package.name (#8843)
Deletes a sentence from the doc comments for `Package.name` that wrongly talks about the possibility of `name` being `nil`. ### Motivation: `Package.name` is a non-Optional property so it can never be `nil`, so [the current documentation for it](https://developer.apple.com/documentation/packagedescription/package/name) is factually wrong: > The name of the Swift package. > > **Discussion** > > If the name of the package is `nil`, Swift Package Manager deduces the name of the package using its Git URL. ### Modifications: - Deleted part of a doc comment.
1 parent 94203e5 commit 29e5620

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/PackageDescription/PackageDescription.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@
7272
/// package's manifest or losing access to existing packages.
7373
public final class Package {
7474
/// The name of the Swift package.
75-
///
76-
/// If the name of the package is `nil`, Swift Package Manager deduces the name of the
77-
/// package using its Git URL.
7875
public var name: String
7976

8077
/// The list of minimum versions for platforms supported by the package.

0 commit comments

Comments
 (0)