Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo #40

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions grammar/error.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ cleansUp()

{% endhighlight %}

上面代码说明,throw语句抛出错误以后,finanlly继续得到执行
上面代码说明,throw语句抛出错误以后,finally继续得到执行

{% highlight javascript %}

Expand All @@ -309,7 +309,7 @@ idle('hello')

上面代码说明,即使有return语句在前,finally代码块依然会得到执行,且在其执行完毕后,才会显示return语句的值。

下面的例子说明,return语句的执行是排在finanlly代码之前,只是等finnally代码执行完毕后才返回
下面的例子说明,return语句的执行是排在finally代码之前,只是等finally代码执行完毕后才返回

{% highlight javascript %}

Expand Down