[审核] Slices and Other Array Features by 大处着手小处着眼#55
Open
FrankLIKE wants to merge 5 commits intoDlangRen:masterfrom
Open
[审核] Slices and Other Array Features by 大处着手小处着眼#55FrankLIKE wants to merge 5 commits intoDlangRen:masterfrom
FrankLIKE wants to merge 5 commits intoDlangRen:masterfrom
Conversation
meatatt
requested changes
Dec 1, 2016
|
|
||
| $(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 <) 运算符。因此,程序使用了无效的索引,试图访问不在数组中的元素。 |
Member
There was a problem hiding this comment.
此处(bugs)是对mistakes的补充说明,按正文处理:
程序有三个错误(漏洞)
bug 不译亦可,但应改为单数并使用全角括号。
| double[] slice = array; // Start with a slice that | ||
| // provides access to all of | ||
| // the elements of the array | ||
| double[] slice = array; // 允许切片 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.