Skip to content
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

valid_docs triggers a warning on tuples #324

Closed
kevindelord opened this issue Jan 7, 2016 · 1 comment · Fixed by #325
Closed

valid_docs triggers a warning on tuples #324

kevindelord opened this issue Jan 7, 2016 · 1 comment · Fixed by #325
Labels
bug Unexpected and reproducible misbehavior.

Comments

@kevindelord
Copy link

Hi,

A warning is shown by the valid_docs rule when a function returns a tuple.
For example:

    /**
    Awesome test function

    - returns: super tuple
    */
    func tupleAsReturnValue() -> (r: CGFloat, g: CGFloat, b: CGFloat) {
        return (r: 1, g: 2, b: 3)
    }

There is no warning when the tuple is a parameter.

Thanks a lot for your work !
Regards

@jpsim jpsim added the bug Unexpected and reproducible misbehavior. label Jan 7, 2016
@jpsim
Copy link
Collaborator

jpsim commented Jan 7, 2016

Thanks for reporting! We should certainly fix this. Help appreciated! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants