greet, exclaim -> exclaim, greet. Issue #110

This commit is contained in:
Jeremy Ashkenas
2011-02-01 20:22:45 -05:00
parent 6b4fe66f09
commit bdfd71021d

View File

@@ -766,7 +766,7 @@ hello();
<pre>
var greet = function(name){ return "hi: " + name; };
var exclaim = function(statement){ return statement + "!"; };
var welcome = _.compose(greet, exclaim);
var welcome = _.compose(exclaim, greet);
welcome('moe');
=&gt; 'hi: moe!'
</pre>