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

[审核] Slices and Other Array Features by 大处着手小处着眼 #55

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

FrankLIKE
Copy link
Contributor

No description provided.

Copy link
Member

@meatatt meatatt left a 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 <) 运算符。因此,程序使用了无效的索引,试图访问不在数组中的元素。
Copy link
Member

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; // 允许切片
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

错译,应译为:
从一个能访问数组全部元素的切片开始

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants