Skip to content

Commit 06b4323

Browse files
authored
Fix argument description in "artifactfile" (#255)
1 parent abe6a14 commit 06b4323

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/api/scripts/target-instance.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,15 @@ os.cp(target:targetfile(), "/tmp/")
267267

268268
::: tip API
269269
```lua
270-
target:artifactfile()
270+
target:artifactfile(kind: <string>)
271271
```
272272
:::
273273

274274
#### Parameter Description
275275

276-
No parameters required for this function.
276+
| Parameter | Description |
277+
|-----------|-------------|
278+
| kind | Target kind |
277279

278280
#### Usage
279281

docs/zh/api/scripts/target-instance.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,15 @@ os.cp(target:targetfile(), "/tmp/")
269269

270270
::: tip API
271271
```lua
272-
target:artifactfile()
272+
target:artifactfile(kind: <string>)
273273
```
274274
:::
275275

276276
#### 参数说明
277277

278-
此函数不需要参数。
278+
| 参数 | 描述 |
279+
|------|---------|
280+
| kind | 目标类型 |
279281

280282
#### 用法说明
281283

0 commit comments

Comments
 (0)