Skip to content

Chinese - fix wrong search character in example code, a -> A #668

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

Merged
merged 1 commit into from
Jan 31, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Chinese - fix wrong search character in example code, a -> A
  • Loading branch information
Paul Sun committed Jan 27, 2017
commit 51eb371fa290aebff04bde9948a3d5a5703ecbc1
2 changes: 1 addition & 1 deletion zh-cn/overviews/core/futures.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ onComplete方法一般在某种意义上它允许客户处理future计算出的
}

text onSuccess {
case txt => totalA += txt.count(_ == 'a')
case txt => totalA += txt.count(_ == 'A')
}

以上,这两个回调(callbacks)可能是一个接一个地执行的,这样变量totalA得到的预期值为18。然而,它们也可能是并发执行的,于是totalA最终可能是16或2,因为+= 是一个不可分割的操作符(即它是由一个读和一个写的步骤组成,这样就可能使其与其他的读和写任意交错执行)。
Expand Down