From 52c36ac445f5a32c561c490f5e11e00d0345cc5b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 4 Jun 2012 16:45:18 -0400 Subject: [PATCH] Fix documentation typo. Former-commit-id: defc89d6a8267a4a6626ca6ac7345db1d55cb9b6 --- README.md | 2 +- doc/README.md | 4 ++-- lodash.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c91a4d11c..b5c743269 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ git submodule update --init * Ensure array-like objects with invalid `length` properties are treated like regular objects [[test](https://github.com/bestiejs/lodash/blob/c07e1567a7a12cff2c5ee6cda81306c8bcf126f0/test/test.js#L237-243), [test](https://github.com/bestiejs/lodash/blob/c07e1567a7a12cff2c5ee6cda81306c8bcf126f0/test/test.js#L533-542), [test](https://github.com/bestiejs/lodash/blob/c07e1567a7a12cff2c5ee6cda81306c8bcf126f0/test/test.js#L661-664)] * Ensure `_(...)` returns passed wrapper instances [[test](https://github.com/bestiejs/lodash/blob/c07e1567a7a12cff2c5ee6cda81306c8bcf126f0/test/test.js#L106-109)] * Ensure `_.groupBy` adds values to own, not inherited, properties [[test](https://github.com/bestiejs/lodash/blob/c07e1567a7a12cff2c5ee6cda81306c8bcf126f0/test/test.js#L317-324)] - * Ensure `_.sortedIndex` supports arrays with high `length` values [[test](https://github.com/bestiejs/lodash/blob/c07e1567a7a12cff2c5ee6cda81306c8bcf126f0/test/test.js#L575-596)] + * Ensure `_.sortedIndex` supports arrays with high `length` values [[test](https://github.com/bestiejs/lodash/blob/c07e1567a7a12cff2c5ee6cda81306c8bcf126f0/test/test.js#L586-595)] * Ensure `_.throttle` works when called in tight loops [[#502](https://github.com/documentcloud/underscore/issues/502), [test](https://github.com/bestiejs/lodash/blob/32627f45072952df18a64cf5e9f2433d2d32730f/test/test.js#L436-446)] * Fix Firefox, IE, Opera, and Safari object iteration bugs [[#376](https://github.com/documentcloud/underscore/issues/376), [test](https://github.com/bestiejs/lodash/blob/32627f45072952df18a64cf5e9f2433d2d32730f/test/test.js#L152-172), [test](https://github.com/bestiejs/lodash/blob/32627f45072952df18a64cf5e9f2433d2d32730f/test/test.js#L206-213), [test](https://github.com/bestiejs/lodash/blob/32627f45072952df18a64cf5e9f2433d2d32730f/test/test.js#L255-257), [test](https://github.com/bestiejs/lodash/blob/32627f45072952df18a64cf5e9f2433d2d32730f/test/test.js#L265-267), [test](https://github.com/bestiejs/lodash/blob/32627f45072952df18a64cf5e9f2433d2d32730f/test/test.js#L285-292), [test](https://github.com/bestiejs/lodash/blob/32627f45072952df18a64cf5e9f2433d2d32730f/test/test.js#L386-388)] * Handle arrays with `undefined` values correctly in IE < 9 [[#601](https://github.com/documentcloud/underscore/issues/601)] diff --git a/doc/README.md b/doc/README.md index 59a7e6ace..06be9cd7c 100644 --- a/doc/README.md +++ b/doc/README.md @@ -790,10 +790,10 @@ Iterates over an `object`'s enumerable own properties, executing the `callback` #### Example ~~~ js -_.forOwn({ '0': 'zero', '1': 'one', '2': 'two', 'length': 3 }, function(num, key) { +_.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) { alert(key); }); -// => alerts 'zero', 'one', 'two', and 'length' (order is not guaranteed) +// => alerts '1', '2', and 'length' (order is not guaranteed) ~~~ * * * diff --git a/lodash.js b/lodash.js index c55069797..c76833702 100644 --- a/lodash.js +++ b/lodash.js @@ -2268,10 +2268,10 @@ * @returns {Object} Returns the `object`. * @example * - * _.forOwn({ '0': 'zero', '1': 'one', '2': 'two', 'length': 3 }, function(num, key) { + * _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) { * alert(key); * }); - * // => alerts 'zero', 'one', 'two', and 'length' (order is not guaranteed) + * // => alerts '1', '2', and 'length' (order is not guaranteed) */ var forOwn = createIterator(baseIteratorOptions, forEachIteratorOptions, forOwnIteratorOptions);