diff --git a/index.js b/index.js index b11f82b3..37c18808 100644 --- a/index.js +++ b/index.js @@ -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. //. diff --git a/test/pairs.js b/test/pairs.js index edb80c6d..244d6a5d 100644 --- a/test/pairs.js +++ b/test/pairs.js @@ -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;