Skip to content

Fix: minor typo error#809

Merged
leviding merged 2 commits intojavascript-tutorial:masterfrom
NoReasonThink:patch-3
Sep 21, 2020
Merged

Fix: minor typo error#809
leviding merged 2 commits intojavascript-tutorial:masterfrom
NoReasonThink:patch-3

Conversation

@NoReasonThink
Copy link
Copy Markdown
Contributor

@NoReasonThink NoReasonThink commented Jul 29, 2020

RT.

- `shift()` —— 从首端提取一个元素,
- `unshift(...items)` —— 向首端添加元素,
- `splice(pos, deleteCount, ...items)` —— 从 `index` 开始删除 `deleteCount` 个元素,并在当前位置插入 `items`。
- `splice(index, deleteCount, ...items)` —— 从 `index` 开始删除 `deleteCount` 个元素,并在当前位置插入 `items`。
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@chhhhhhq 感谢提交~

参考最新的英文
en.javascript.info/article.md at master · javascript-tutorial/en.javascript.info:

  • splice(pos, deleteCount, ...items) -- at index pos delete deleteCount elements and insert items.

个人建议和英文保持一致, 依然用 pos 作为参数, 修改后面的中文解释部分的翻译, 您觉得如何?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

嗯嗯,我觉得您的改动更好些

Comment thread 1-js/05-data-types/05-array-methods/article.md Outdated
@javascript-translate-bot
Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

Co-authored-by: bemself <45781328+bemself@users.noreply.github.com>
Copy link
Copy Markdown
Member

@leviding leviding left a comment

Choose a reason for hiding this comment

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

LGTM.

@leviding leviding merged commit f030b15 into javascript-tutorial:master Sep 21, 2020
@leviding leviding changed the title Update article.md Fix: minor typo error Sep 21, 2020
@leviding leviding added DONE and removed needs +1 labels Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants