From 6e9e8127b6436cd1748e9c60dfd770081ef87b9d Mon Sep 17 00:00:00 2001 From: jdalton Date: Sun, 5 Apr 2015 08:15:36 -0500 Subject: [PATCH] Rename variable `sum` in doc examples to `total`. [ci skip] --- lodash.src.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index 5178ef0ca..2838f3fde 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -933,8 +933,8 @@ * var wrapped = _([1, 2, 3]); * * // returns an unwrapped value - * wrapped.reduce(function(sum, n) { - * return sum + n; + * wrapped.reduce(function(total, n) { + * return total + n; * }); * // => 6 * @@ -6920,8 +6920,8 @@ * @returns {*} Returns the accumulated value. * @example * - * _.reduce([1, 2], function(sum, n) { - * return sum + n; + * _.reduce([1, 2], function(total, n) { + * return total + n; * }); * // => 3 *