{"action":"closed","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1456","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1456/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1456/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1456/events","html_url":"https://github.com/lodash/lodash/issues/1456","id":106011937,"number":1456,"title":"Incorrect example in _.times doc.","user":{"login":"lcarva","id":5272931,"avatar_url":"https://avatars.githubusercontent.com/u/5272931?v=3","gravatar_id":"","url":"https://api.github.com/users/lcarva","html_url":"https://github.com/lcarva","followers_url":"https://api.github.com/users/lcarva/followers","following_url":"https://api.github.com/users/lcarva/following{/other_user}","gists_url":"https://api.github.com/users/lcarva/gists{/gist_id}","starred_url":"https://api.github.com/users/lcarva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcarva/subscriptions","organizations_url":"https://api.github.com/users/lcarva/orgs","repos_url":"https://api.github.com/users/lcarva/repos","events_url":"https://api.github.com/users/lcarva/events{/privacy}","received_events_url":"https://api.github.com/users/lcarva/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lodash/lodash/labels/documentation","name":"documentation","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T13:33:13Z","updated_at":"2015-09-11T14:21:25Z","closed_at":"2015-09-11T14:21:25Z","body":"In the Example section for _.times documentation (https://lodash.com/docs#times), the comment does not match the code (`cast` vs `castSpell`):\r\n\r\n```javascript\r\nvar diceRolls = _.times(3, _.partial(_.random, 1, 6, false));\r\n// → [3, 6, 4]\r\n\r\n_.times(3, function(n) {\r\n  mage.castSpell(n);\r\n});\r\n// → invokes `mage.castSpell(n)` three times with `n` of `0`, `1`, and `2`\r\n\r\n_.times(3, function(n) {\r\n  this.cast(n); // <------- This should be this.castSpell(n)\r\n}, mage);\r\n// → also invokes `mage.castSpell(n)` three times\r\n\r\n```"}}