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

Documentation is wrong #2

Open
tandrewnichols opened this issue Aug 10, 2014 · 1 comment
Open

Documentation is wrong #2

tandrewnichols opened this issue Aug 10, 2014 · 1 comment
Labels

Comments

@tandrewnichols
Copy link
Contributor

All the examples show:

var stairs = require('stairs');
stairs.step(/*...*/) // etc.

But require('stairs') actually returns the class Stairs, so it should be more like:

var stairs = new (require('stairs'))()
stairs.step(/* etc. */)
@NathanGRomano
Copy link
Member

Well lets fix it

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

No branches or pull requests

2 participants