Skip to content

Commit

Permalink
Fix typos in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomek Wiszniewski committed May 11, 2015
1 parent db4a3ea commit 9ccb6c4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ max(3, 6); // => 6

### method

Same as `object.method(...args)`
Same as `object[method](...args)`

```js
const method = require('1-liners/method');
Expand Down Expand Up @@ -649,7 +649,7 @@ plus(2, 8); // => 10

### property

Same as `object.property`
Same as `object[property]`

```js
const property = require('1-liners/property');
Expand Down
14 changes: 7 additions & 7 deletions module/method.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/**
* @module 1-liners/method
*
*
* @description
*
* Same as `object.method(...args)`
*
* Same as `object[method](...args)`
*
* @example
*
*
* const method = require('1-liners/method');
*
*
* const object = {
* base: 1,
* add(number) { return this.base + number; },
* };
*
*
* method('add', object)(5); // => 6
*
*
*/
export default (method, object) => (...args) => object[method](...args);
14 changes: 7 additions & 7 deletions module/property.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/**
* @module 1-liners/property
*
*
* @description
*
* Same as `object.property`
*
* Same as `object[property]`
*
* @example
*
*
* const property = require('1-liners/property');
*
*
* const object = {foo: 1};
*
*
* property('foo', object); // => 1
*
*
*/
export default (property, object) => object[property];

0 comments on commit 9ccb6c4

Please sign in to comment.