Skip to content

Commit

Permalink
object: replace ‘toPairs’ with ‘pairs’
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed May 31, 2016
1 parent 93f6d9f commit 0161e94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2899,7 +2899,7 @@
return Object.keys(strMap).map(function(key) { return strMap[key]; });
});

//# toPairs :: StrMap a -> Array (Pair String a)
//# pairs :: StrMap a -> Array (Pair String a)
//.
//. Returns the key–value pairs of the given string map, in arbitrary order.
//.
Expand Down
2 changes: 1 addition & 1 deletion test/pairs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var errorEq = require('./utils').errorEq;
var S = require('..');


describe('toPairs', function() {
describe('pairs', function() {

var comparePairsAsc = function(a, b) {
return a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0;
Expand Down

0 comments on commit 0161e94

Please sign in to comment.