Skip to content

Commit 11a4916

Browse files
committed
Sync multilingual docs and comments
1 parent 323eb92 commit 11a4916

9 files changed

Lines changed: 17 additions & 25 deletions

File tree

en/codes/c/chapter_stack_and_queue/array_queue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
typedef struct {
1111
int *nums; // Array for storing queue elements
1212
int front; // Front pointer, points to the front of the queue element
13-
int queSize; // Rear pointer, points to rear + 1
13+
int queSize; // Current number of elements in the queue
1414
int queCapacity; // Queue capacity
1515
} ArrayQueue;
1616

@@ -131,4 +131,4 @@ int main() {
131131
delArrayQueue(queue);
132132

133133
return 0;
134-
}
134+
}

en/docs/chapter_preface/suggestions.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,8 @@
137137

138138
// Content comment, used to explain code in detail
139139

140-
/**
141-
* Multi-line
142-
* comment
143-
*/
140+
// Multi-line
141+
// comment
144142
```
145143

146144
=== "C"

ja/codes/c/chapter_stack_and_queue/array_queue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
typedef struct {
1111
int *nums; // キュー要素を格納する配列
1212
int front; // 先頭ポインタ。先頭要素を指す
13-
int queSize; // 末尾ポインタ。キューの末尾 + 1 を指す
13+
int queSize; // 現在のキュー内の要素数
1414
int queCapacity; // キューの容量
1515
} ArrayQueue;
1616

@@ -131,4 +131,4 @@ int main() {
131131
delArrayQueue(queue);
132132

133133
return 0;
134-
}
134+
}

ja/docs/chapter_preface/suggestions.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,8 @@
137137

138138
// 内容コメント。コードを詳しく説明するために使います
139139

140-
/**
141-
* 複数行
142-
* コメント
143-
*/
140+
// 複数行
141+
// コメント
144142
```
145143

146144
=== "C"

overrides/partials/comments.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h5 align="center" id="__comments">{{ comm }}</h5>
4646
/* Set palette on initial load */
4747
var palette = __md_get("__palette")
4848
if (palette && typeof palette.color === "object") {
49-
var theme = palette.color.scheme === "slate" ? "dark_dimmed" : "light"
49+
var theme = palette.color.scheme === "slate" ? "noborder_dark" : "light"
5050
giscus.setAttribute("data-theme", theme)
5151
}
5252

@@ -56,7 +56,7 @@ <h5 align="center" id="__comments">{{ comm }}</h5>
5656
ref.addEventListener("change", function() {
5757
var palette = __md_get("__palette")
5858
if (palette && typeof palette.color === "object") {
59-
var theme = palette.color.scheme === "slate" ? "dark_dimmed" : "light"
59+
var theme = palette.color.scheme === "slate" ? "noborder_dark" : "light"
6060

6161
/* Instruct Giscus to change theme */
6262
var frame = document.querySelector(".giscus-frame")

ru/codes/c/chapter_stack_and_queue/array_queue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
typedef struct {
1111
int *nums; // Массив для хранения элементов очереди
1212
int front; // Указатель head, указывающий на первый элемент очереди
13-
int queSize; // Указатель хвоста, указывающий на позицию после хвоста
13+
int queSize; // Текущее количество элементов в очереди
1414
int queCapacity; // Вместимость очереди
1515
} ArrayQueue;
1616

@@ -131,4 +131,4 @@ int main() {
131131
delArrayQueue(queue);
132132

133133
return 0;
134-
}
134+
}

ru/docs/chapter_preface/suggestions.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,8 @@
137137

138138
// Содержательный комментарий: подробно поясняет код
139139

140-
/**
141-
* Многострочный
142-
* комментарий
143-
*/
140+
// Многострочный
141+
// комментарий
144142
```
145143

146144
=== "C"

zh-hant/codes/c/chapter_stack_and_queue/array_queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
typedef struct {
1111
int *nums; // 用於儲存佇列元素的陣列
1212
int front; // 佇列首指標,指向佇列首元素
13-
int queSize; // 尾指標,指向佇列尾 + 1
13+
int queSize; // 當前佇列的元素數量
1414
int queCapacity; // 佇列容量
1515
} ArrayQueue;
1616

zh-hant/docs/chapter_preface/suggestions.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,8 @@
137137

138138
// 內容註釋,用於詳解程式碼
139139

140-
/**
141-
* 多行
142-
* 註釋
143-
*/
140+
// 多行
141+
// 註釋
144142
```
145143

146144
=== "C"

0 commit comments

Comments
 (0)