{"action":"closed","issue":{"url":"https://api.github.com/repos/ruanyf/es6tutorial/issues/240","repository_url":"https://api.github.com/repos/ruanyf/es6tutorial","labels_url":"https://api.github.com/repos/ruanyf/es6tutorial/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/ruanyf/es6tutorial/issues/240/comments","events_url":"https://api.github.com/repos/ruanyf/es6tutorial/issues/240/events","html_url":"https://github.com/ruanyf/es6tutorial/issues/240","id":167525940,"number":240,"title":"let和const命令章节中块级作用域与函数声明出现代码错误","user":{"login":"jucelin","id":4074034,"avatar_url":"https://avatars.githubusercontent.com/u/4074034?v=3","gravatar_id":"","url":"https://api.github.com/users/jucelin","html_url":"https://github.com/jucelin","followers_url":"https://api.github.com/users/jucelin/followers","following_url":"https://api.github.com/users/jucelin/following{/other_user}","gists_url":"https://api.github.com/users/jucelin/gists{/gist_id}","starred_url":"https://api.github.com/users/jucelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jucelin/subscriptions","organizations_url":"https://api.github.com/users/jucelin/orgs","repos_url":"https://api.github.com/users/jucelin/repos","events_url":"https://api.github.com/users/jucelin/events{/privacy}","received_events_url":"https://api.github.com/users/jucelin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T05:47:49Z","updated_at":"2016-07-26T12:35:19Z","closed_at":"2016-07-26T12:35:19Z","body":"[http://es6.ruanyifeng.com/#docs/let#块级作用域与函数声明](http://es6.ruanyifeng.com/#docs/let#块级作用域与函数声明)\r\n\r\n第5个代码块：\r\n\r\n```javascript\r\n// ES5版本\r\nfunction f() { console.log('I am outside!'); }\r\n(function () {\r\n  function f() { console.log('I am inside!'); }\r\n  if (false) {\r\n  }\r\n  f();\r\n}());\r\n```\r\n\r\n正确的应该是：\r\n\r\n```javascript\r\n// ES5版本\r\nfunction f() { console.log('I am outside!'); }\r\n(function () {\r\n  if (false) {\r\n    function f() { console.log('I am inside!'); } //看这里\r\n  }\r\n  f();\r\n}());\r\n```"}}
{"actor":{"display_login":"ruanyf"}}