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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ let package = Package(
.package(url: "https://github.com/mongodb/mongo-swift-driver.git", from: "0.0.2"),
],
targets: [
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.

]
)
```
Expand Down