Skip to content

Commit 7148409

Browse files
committed
fix typo
1 parent 1c8e6a7 commit 7148409

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

internal/config/meta/gen/main.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -214,22 +214,22 @@ var end = "<!-- /env-variables -->"
214214
// parseMarkdownEnv extracts the env.md to be:
215215
// - header: content before the env variables section
216216
// - body: the content between start and end markers
217-
// - generalTableTitle: the first title (## ...) after the start marker
218-
// - tableFields: the first table header row after the general table title
217+
// - firstTableTitle: the first title (## ...) after the start marker
218+
// - tableFields: the first table header row after the first table title
219219
// - footer: content after the env variables section
220220
//
221221
// For example, given a snippet from env.md:
222222
// ```md
223-
// ...header...
224-
// <!-- env-variables -->
225-
// ## 通用配置
223+
// ...header...
224+
// <!-- env-variables -->
225+
// ## 通用配置
226226
//
227-
// | 环境变量 | 默认值 | 描述 | 路径 |
228-
// | --- | --- | --- | --- |
229-
// | **ATK_ADMIN_USERS** | `[]` | 管理员账户 | admin_users (管理员账户) |
230-
// ...more tables...
231-
// <!-- /env-variables -->
232-
// ...footer...
227+
// | 环境变量 | 默认值 | 描述 | 路径 |
228+
// | --- | --- | --- | --- |
229+
// | **ATK_ADMIN_USERS** | `[]` | 管理员账户 | admin_users (管理员账户) |
230+
// ...more tables...
231+
// <!-- /env-variables -->
232+
// ...footer...
233233
// ```
234234
// The function should return:
235235
// header: "...header...\n"

0 commit comments

Comments
 (0)