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

update examples to be more readable #29

Merged
merged 2 commits into from
Jul 26, 2018
Merged

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Jul 25, 2018

No description provided.

README.md Outdated
const g = (() => {
const fn = f;
const p0 = 1;
return (a0, a1, ...args) => fn(a0, p0, a1, ...args);
Copy link
Member

Choose a reason for hiding this comment

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

...args is incorrect here, this only accepts two params.

README.md Outdated
const receiver = o;
const fn = o.f;
const p0 = 1;
return (a0, ...args) => fn.call(receiver, a0, p0, ...args);
Copy link
Member

Choose a reason for hiding this comment

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

Again, ...args is incorrect.

@rbuckton rbuckton merged commit 5237448 into tc39:master Jul 26, 2018
@devsnek devsnek deleted the patch-1 branch July 26, 2018 03:57
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.

4 participants