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 API docs inconsistencies #3

Merged
merged 2 commits into from
Nov 19, 2018
Merged

Fix API docs inconsistencies #3

merged 2 commits into from
Nov 19, 2018

Conversation

cabaret
Copy link
Contributor

@cabaret cabaret commented Nov 19, 2018

I was reading through the docs and noticed some inconsistencies:

  • appendTo calls in append examples
  • assignWith calls instead of assign in assign examples
  • typo on return value of array2(1, 2)
  • drop3 examples weren't correct

I haven't finished reading the docs (I'm at work and it's a lot to read through) but I can check the rest for inconsistencies later if it could be of help.

@klaudiosinani klaudiosinani added the docs The issue or pull request involves the documentation label Nov 19, 2018
Copy link
Owner

@klaudiosinani klaudiosinani left a comment

Choose a reason for hiding this comment

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

Looks great! We can replace appendTo with append on lines 137 & 138 and it is good to be merged 👌

assignWith(10)('a')({ a: 1, b: 2 }) //=> { a: 10, b: 2}
assign(10, 'a', { a: 1, b: 2 }) //=> { a: 10, b: 2}
assign(10, 'a')({ a: 1, b: 2 }) //=> { a: 10, b: 2}
assign(10)('a')({ a: 1, b: 2 }) //=> { a: 10, b: 2}
Copy link
Owner

Choose a reason for hiding this comment

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

👌

@@ -315,7 +313,7 @@ Accepts a number `n`, a function `fn`, and returns a wrapper function of `fn` wi
```js
const array2 = binary(array)

array2(1, 2) //=> 1 2
array2(1, 2) //=> [1, 2]
Copy link
Owner

Choose a reason for hiding this comment

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

👌

drop(3, 'foo..') //=> '...'
drop(3)('foo..') //=> '...'
drop(3, 'foo...') //=> '...'
drop(3)('foo...') //=> '...'
Copy link
Owner

Choose a reason for hiding this comment

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

👌

docs/api.EN.md Show resolved Hide resolved
Copy link
Owner

@klaudiosinani klaudiosinani left a comment

Choose a reason for hiding this comment

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

Thank you a lot for taking the time to contribute : )

@klaudiosinani klaudiosinani merged commit cf9abaa into klaudiosinani:master Nov 19, 2018
@cabaret
Copy link
Contributor Author

cabaret commented Nov 19, 2018

No problem, I'll check the rest of the docs later. Do you need any help writing tests or anything else?

@cabaret cabaret deleted the bugfix/docs branch November 19, 2018 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs The issue or pull request involves the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants