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

Fixed a code example and a spelling error #31

Closed
wants to merge 12 commits into from
Closed

Fixed a code example and a spelling error #31

wants to merge 12 commits into from

Conversation

jntn
Copy link

@jntn jntn commented Jul 1, 2016

Was reading through your barracks documentation and found two small errors.

Good work on choo and barracks by the way! 🙌

@coveralls
Copy link

coveralls commented Jul 1, 2016

Coverage Status

Coverage remained the same at 70.833% when pulling de2a80b on jntn:documentation-fixes into 9523228 on yoshuawuyts:elm-it-up.

@@ -241,7 +241,7 @@ app.model({
subscriptions: {
emitWoofs: (send) => {
// emit a woof every second
setInterval(() => send('print', { woof: 'meow?' }), 1000)
setInterval(() => send('print', { printWoofs: 'meow?' }), 1000)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this won't fly because line 248 expects a "woof" property to exist on the object

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, changed the wrong thing! 😓 It should be setInterval(() => send('printWoofs', { woof: 'meow?' }), 1000)

The argument in send should match the effect name, right?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, exactly! - I like the name "printwoofs"

@yoshuawuyts
Copy link
Owner

Oooh, nice, thanks! :D

@jntn
Copy link
Author

jntn commented Jul 1, 2016

Updated the code example again 😄

@yoshuawuyts
Copy link
Owner

Whoops, totes forgot to merge this - fixed in 3b6ef39. Thanks heaps! ✨

@yoshuawuyts yoshuawuyts closed this Jul 5, 2016
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.

3 participants