Skip to content

Commit

Permalink
Add missing javascript designator in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
earldouglas committed Dec 20, 2014
1 parent 6bf2a79 commit e810a48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ The application of `(f ∘ g)(x)` is equivalent to `f(g(x))`.

*Example:*

```javascript
function inc(x) {
return x + 1;
}
Expand All @@ -44,6 +45,7 @@ function square(x) {

var nine = compose(square, inc)(2); // square(inc(2)) == (2 + 1) ^ 2
var five = compose(inc, square)(2); // inc(square(2)) == (2 ^ 2) + 1
```

**Parameters**

Expand Down
2 changes: 2 additions & 0 deletions lib/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
* *Example:*
*
* ```javascript
* function inc(x) {
* return x + 1;
* }
Expand All @@ -19,6 +20,7 @@
*
* var nine = compose(square, inc)(2); // square(inc(2)) == (2 + 1) ^ 2
* var five = compose(inc, square)(2); // inc(square(2)) == (2 ^ 2) + 1
* ```
*
* @param f {function} a unary function
* @param g {function} a unary function
Expand Down

0 comments on commit e810a48

Please sign in to comment.