-
Notifications
You must be signed in to change notification settings - Fork 12
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
[审核] Slices and Other Array Features by 大处着手小处着眼 #55
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
本文标题中的features
应译为特性
而非特征
。
@@ -111,23 +111,23 @@ void main() { | |||
) | |||
|
|||
$(LI | |||
There are three mistakes (bugs) in this program. The first two are with the $(C while) loops: Both of the loop conditions use the $(C <=) operator instead of the $(C <) operator. As a result, the program uses invalid indexes and attempts to access elements that are not parts of the arrays. | |||
程序有三个错误(bugs)。前两个与 $(C while) 循环有关: 循环条件都用了 $(C <=) 运算符而没用 $(C <) 运算符。因此,程序使用了无效的索引,试图访问不在数组中的元素。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此处(bugs)
是对mistakes
的补充说明,按正文处理:
程序有三个错误(漏洞)
bug 不译亦可,但应改为单数并使用全角括号。
double[] slice = array; // Start with a slice that | ||
// provides access to all of | ||
// the elements of the array | ||
double[] slice = array; // 允许切片 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
错译,应译为:
从一个能访问数组全部元素的切片开始
No description provided.