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

fix xor example #22

Merged

Conversation

ivoreis
Copy link
Contributor

@ivoreis ivoreis commented Jun 15, 2015

Update xor example with xor function call.

@@ -7,7 +7,7 @@
* @example Basic Usage
*
* ```javascript
* ;(-3)::abs() // returns 3
* -3::abs() // returns 3

Choose a reason for hiding this comment

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

This won't work, it will return -3 because it's the same as doing -(3::abs())

@jussi-kalliokoski
Copy link
Owner

Nicely spotted! 👍

@@ -11,7 +11,7 @@
*
* ```javascript
* [1,2,3,4,1,2,3,4]::takeWhile(function () {
* return this < 4;

Choose a reason for hiding this comment

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

Heh, this is what happens when you accidentally rm -rf . and reverse generate function declarations with the JSDoc from the generated HTML documentation x)

jussi-kalliokoski added a commit that referenced this pull request Jun 16, 2015
@jussi-kalliokoski jussi-kalliokoski merged commit 220e966 into jussi-kalliokoski:master Jun 16, 2015
@jussi-kalliokoski
Copy link
Owner

Merged! ❤️ 🎉

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.

None yet

2 participants