Skip to content

Commit

Permalink
Updating ap's description (ramda#2004)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffDownie authored Jan 22, 2022
1 parent d197043 commit 9bffeb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/ap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import map from './map.js';
/**
* ap applies a list of functions to a list of values.
*
* Dispatches to the `ap` method of the second argument, if present. Also
* Dispatches to the `ap` method of the first argument, if present. Also
* treats curried functions as applicatives.
*
* @func
Expand Down
2 changes: 1 addition & 1 deletion test/ap.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('ap', function() {
eq(R.ap(R.add)(g)(10), 10 + (10 * 2));
});

it('dispatches to the passed object\'s ap method when values is a non-Array object', function() {
it('dispatches to the first passed object\'s ap method when values is a non-Array object', function() {
var obj = {ap: function(n) { return 'called ap with ' + n; }};
eq(R.ap(obj, 10), obj.ap(10));
});
Expand Down

0 comments on commit 9bffeb7

Please sign in to comment.