Skip to content

Fix versions in documentation #19

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

Closed
wants to merge 1 commit into from

Conversation

onevcat
Copy link
Contributor

@onevcat onevcat commented Dec 4, 2015

The Package(url:versions:) requires a Range<Version> as argument, passing a String to it will fail the package building with this error.

cannot convert value of type 'String' to expected argument type 'Range'

Although Version itself is StringLiteralConvertible, the Range<Version> is not.

Another way to fix it would be something like .Package(url: "…", versions: "1.0.0"..."1.0.2"). But I guess we'd better to keep it simple for demonstration purpose.

See #13 and #17 as well.

@mxcl
Copy link
Contributor

mxcl commented Dec 4, 2015

The unlabeled parameter was added before we allowed string literal convertibles, so really I should make it labeled for this context.

@mxcl
Copy link
Contributor

mxcl commented Dec 7, 2015

Used #13. Thank you for your time and sorry we used the other patch.

@mxcl mxcl closed this Dec 7, 2015
@onevcat onevcat deleted the fix/version-documentation branch December 8, 2015 09:43
aciidgh pushed a commit to aciidgh/swift-package-manager that referenced this pull request Jan 11, 2019
sergiocampama pushed a commit that referenced this pull request Apr 20, 2020
Sync with SwiftPM trunk
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