Skip to content

Replace Target() with .target in Package.swift example #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2018

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Jul 11, 2018

.target() is consistent with current examples in https://swift.org/package-manager/. This is something I noticed while testing #94 for SWIFT-157.

@jmikola jmikola requested a review from kmahar July 11, 2018 19:53
Target(
name: "MyPackage",
dependencies: ["MongoSwift"])
.target(name: "MyPackage", dependencies: ["MongoSwift"])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously, a large app may have many dependencies and use line breaks for declaring the dependencies array, but I don't see why we can't use one line for our concise example.

Willing to change if needed.

@jmikola jmikola merged commit 7688da2 into master Jul 11, 2018
@jmikola jmikola deleted the jmikola-patch-1 branch July 11, 2018 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants