Skip to content

Commit

Permalink
style(cs,js,ts): Add missing comment in docfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
curtishd committed Apr 12, 2024
1 parent 762dfc7 commit 8467d9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/chapter_array_and_linkedlist/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,10 @@
nums.Add(4);

/* 在中间插入元素 */
nums.Insert(3, 6);
nums.Insert(3, 6); // 在索引 3 处插入数字 6

/* 删除元素 */
nums.RemoveAt(3);
nums.RemoveAt(3); // 删除索引 3 处的元素
```

=== "Go"
Expand Down Expand Up @@ -439,10 +439,10 @@
nums.push(4);

/* 在中间插入元素 */
nums.splice(3, 0, 6);
nums.splice(3, 0, 6); // 在索引 3 处插入数字 6

/* 删除元素 */
nums.splice(3, 1);
nums.splice(3, 1); // 删除索引 3 处的元素
```

=== "TS"
Expand All @@ -459,10 +459,10 @@
nums.push(4);

/* 在中间插入元素 */
nums.splice(3, 0, 6);
nums.splice(3, 0, 6); // 在索引 3 处插入数字 6

/* 删除元素 */
nums.splice(3, 1);
nums.splice(3, 1); // 删除索引 3 处的元素
```

=== "Dart"
Expand Down

0 comments on commit 8467d9a

Please sign in to comment.