Update p03_keep_last_n_items.rst #320
Merged
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.
修改解决方案中:
“比如,下面的代码在多行上面做简单的文本匹配,
并返回匹配所在行的最后N行:”
为:
“比如,下面的代码在多行上面做简单的文本匹配,
并返回匹配所在行及其前面的N行:
”
原因是:个人感觉这样更接近于英文原文且更好理解。之前的译法,让我一开始理解为返回包括匹配行在内的最后N行,以为是匹配行之后的N行,实际上是之前的N行。