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

[ru] update example in Web/JavaScript/Reference/Global_Objects/Array #22864

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

Lacertilia1
Copy link
Contributor

Description

In this update, I corrected the documentation for the splice method to improve clarity and accuracy. Specifically, I changed the word “pos” to “start” in the comments to match the variable name used in the code.

Motivation

This change helps to clearly indicate that the start parameter determines the position in the array where the method begins removing elements.

Additional details

Before:

const removedItems = vegetables.splice(start, deleteCount);
// так можно удалить элементы, deleteCount определяет количество элементов для удаления,
// начиная с позиции (pos) и далее в направлении конца массива.

After:

const removedItems = vegetables.splice(start, deleteCount);
// так можно удалить элементы, deleteCount определяет количество элементов для удаления,
// начиная с позиции (start) и далее в направлении конца массива.

In this update, I corrected the documentation for the splice method to improve clarity and accuracy. Specifically, I changed the word “pos” to “start” in the comments to match the variable name used in the code. 

This change helps to clearly indicate that the start parameter determines the position in the array where the method begins removing elements.
@Lacertilia1 Lacertilia1 requested a review from a team as a code owner August 1, 2024 05:29
@Lacertilia1 Lacertilia1 requested review from leon-win and removed request for a team August 1, 2024 05:29
@github-actions github-actions bot added the l10n-ru Issues related to Russian content. label Aug 1, 2024
Copy link
Contributor

github-actions bot commented Aug 1, 2024

Preview URLs

Flaws (11)

URL: /ru/docs/Web/JavaScript/Reference/Global_Objects/Array
Title: Array
Flaw count: 11

  • macros:
    • /ru/docs/Web/JavaScript/Reference/Global_Objects/Array/Array does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Array
    • /ru/docs/Web/JavaScript/Reference/Global_Objects/Array/@@species redirects to /ru/docs/Web/JavaScript/Reference/Global_Objects/Array/Symbol.species
    • /ru/docs/Web/JavaScript/Reference/Global_Objects/Array/fromAsync does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fromAsync
    • /ru/docs/Web/JavaScript/Reference/Global_Objects/Array/Array does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Array
    • /ru/docs/Web/JavaScript/Reference/Global_Objects/Array/@@unscopables redirects to /ru/docs/Web/JavaScript/Reference/Global_Objects/Array/Symbol.unscopables
    • and 5 more flaws omitted
  • broken_links:
    • Can't resolve /ru/docs/Web/JavaScript/Reference/Global_Objects/Array/@@iterator

(comment last updated: 2024-08-05 21:01:27)

@leon-win leon-win changed the title Update index.md [ru] update example in Web/JavaScript/Reference/Global_Objects/Array Aug 5, 2024
@leon-win leon-win merged commit d8011a3 into mdn:main Aug 5, 2024
7 checks passed
@leon-win
Copy link
Member

leon-win commented Aug 5, 2024

Привет, @Lacertilia1 !

Благодарю за желание улучшить MDN! 👍
Я изменил PR (обновил изменённый пример в соответствии с оригиналом) 👌

На будущее: желательно изменять название PR'а с автоматического Update index.md на описывающее реальные изменения (я обновил название, чтобы было нагляднее) :)

@leon-win
Copy link
Member

leon-win commented Aug 5, 2024

А описание хорошее, подробное 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-ru Issues related to Russian content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants