From 2d3d66e9d1027dd843febb7629352e745f310e39 Mon Sep 17 00:00:00 2001 From: Max Bucknell Date: Tue, 29 Apr 2014 12:07:21 +0100 Subject: [PATCH] Fix spelling mistake --- doc/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/README.md b/doc/README.md index c695db017..1a74f6f66 100644 --- a/doc/README.md +++ b/doc/README.md @@ -902,17 +902,17 @@ _.sortedIndex([20, 30, 50], 40); // => 2 var dict = { - 'wordToNumber': { 'twenty': 20, 'thirty': 30, 'fourty': 40, 'fifty': 50 } + 'wordToNumber': { 'twenty': 20, 'thirty': 30, 'forty': 40, 'fifty': 50 } }; // using `callback` -_.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) { +_.sortedIndex(['twenty', 'thirty', 'fifty'], 'forty', function(word) { return dict.wordToNumber[word]; }); // => 2 // using `callback` with `thisArg` -_.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) { +_.sortedIndex(['twenty', 'thirty', 'fifty'], 'forty', function(word) { return this.wordToNumber[word]; }, dict); // => 2 @@ -5070,4 +5070,4 @@ IE < `8` can't access characters by index and IE `8` can only access characters - [1]: #arrays "Jump back to the TOC." \ No newline at end of file + [1]: #arrays "Jump back to the TOC."