Fix various doc typos and update builds.

This commit is contained in:
John-David Dalton
2013-10-20 23:46:40 -07:00
parent a266e3c898
commit c6291bea52
7 changed files with 157 additions and 150 deletions

View File

@@ -3636,7 +3636,7 @@
* @example
*
* var realNameMap = {
* 'pebbles': 'jerome'
* 'pebbles': 'penelope'
* };
*
* var format = function(name) {
@@ -3650,7 +3650,7 @@
*
* var welcome = _.compose(greet, format);
* welcome('pebbles');
* // => 'Hiya Jerome!'
* // => 'Hiya Penelope!'
*/
function compose() {
var funcs = arguments,
@@ -4070,11 +4070,12 @@
* @returns {Function} Returns the new function.
* @example
*
* var pre= _.wrap(_.escape, function(func, text) {
* return '<div>' + func(text) + '</div>';
* var p = _.wrap(_.escape, function(func, text) {
* return '<p>' + func(text) + '</p>';
* });
* pre('Fred, Wilma, & Pebbles');
* // => '<div>Fred, Wilma, &amp; Pebbles</div>'
*
* p('Fred, Wilma, & Pebbles');
* // => '<p>Fred, Wilma, &amp; Pebbles</p>'
*/
function wrap(value, wrapper) {
return createBound(wrapper, 16, [value]);