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

Some README code doesn't compile #33

Closed
ghost opened this issue Jun 22, 2016 · 3 comments
Closed

Some README code doesn't compile #33

ghost opened this issue Jun 22, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 22, 2016

Hello.

The README includes several references to code that sends nil for the options. But that parameter is a required one so it doesn't compile:

let document = CMDocument(contentsOfFile: path, options: nil)

Maybe I'm missing something?

@indragiek
Copy link
Owner

That was a change that happened in a later version of swift. Now you pass [] instead of nil to represent an empty option set.

@indragiek
Copy link
Owner

I'll leave this open to remind myself to fix the references in the README.

@ghost
Copy link
Author

ghost commented Jun 22, 2016

Cool. Thx for quick reply.

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

No branches or pull requests

1 participant