Skip to content

Update p03_keep_last_n_items.rst #320

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
Aug 2, 2020
Merged

Conversation

Jock2018
Copy link
Contributor

@Jock2018 Jock2018 commented Apr 4, 2020

修改解决方案中:
“比如,下面的代码在多行上面做简单的文本匹配,
并返回匹配所在行的最后N行:”

为:
“比如,下面的代码在多行上面做简单的文本匹配,
并返回匹配所在行及其前面的N行:

原因是:个人感觉这样更接近于英文原文且更好理解。之前的译法,让我一开始理解为返回包括匹配行在内的最后N行,以为是匹配行之后的N行,实际上是之前的N行。

修改解决方案中:
“比如,下面的代码在多行上面做简单的文本匹配,
并返回匹配所在行的最后N行:”

为:
“比如,下面的代码在多行上面做简单的文本匹配,
并返回匹配所在行及其前面的N行:
”
原因是:个人感觉这样更接近于英文原文且更好理解。之前的译法,让我一开始理解为返回包括匹配行在内的最后N行,以为是匹配行之后的N行,实际上是之前的N行。
@yidao620c yidao620c merged commit 26ab1d8 into yidao620c:master Aug 2, 2020
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