Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/api/description/project-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -4850,7 +4850,7 @@ installdir
If we configure:

```lua
set_prefix("prefixdir")
set_prefixdir("prefixdir")
```

It is to add a general subdirectory:
Expand All @@ -4866,7 +4866,7 @@ installdir
We can also configure bin, lib and include subdirectories separately, for example:

```lua
set_prefix("prefixdir", {bindir = "mybin", libdir = "mylib", includedir = "myinc"})
set_prefixdir("prefixdir", {bindir = "mybin", libdir = "mylib", includedir = "myinc"})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This example correctly uses set_prefixdir with two arguments. However, the function prototype documented for set_prefixdir on line 4826 only shows one argument (prefixdir: <string>). To avoid confusion and improve documentation quality, please consider updating the function prototype to include the optional second table argument, for example: set_prefixdir(prefixdir: <string>, options?: <table>).

```

```sh
Expand All @@ -4880,7 +4880,7 @@ installdir
If we do not configure prefixdir and only modify the bin subdirectory, we can configure prefixdir to `/`.

```lua
set_prefix("/", {bindir = "mybin", libdir = "mylib", includedir = "myinc"})
set_prefixdir("/", {bindir = "mybin", libdir = "mylib", includedir = "myinc"})
```

```sh
Expand Down
6 changes: 3 additions & 3 deletions docs/zh/api/description/project-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -4934,7 +4934,7 @@ installdir
如果我们配置:

```lua
set_prefix("prefixdir")
set_prefixdir("prefixdir")
```

就是增加一个总的子目录:
Expand All @@ -4950,7 +4950,7 @@ installdir
我们还可以单独配置 bin, lib 和 include 子目录,例如:

```lua
set_prefix("prefixdir", {bindir = "mybin", libdir = "mylib", includedir = "myinc"})
set_prefixdir("prefixdir", {bindir = "mybin", libdir = "mylib", includedir = "myinc"})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This example correctly uses set_prefixdir with two arguments. However, the function prototype documented for set_prefixdir on line 4910 only shows one argument (prefixdir: <string>). To avoid confusion and improve documentation quality, please consider updating the function prototype to include the optional second table argument, for example: set_prefixdir(prefixdir: <string>, options?: <table>).

```

```sh
Expand All @@ -4964,7 +4964,7 @@ installdir
如果,我们不配置 prefixdir,仅仅修改 bin 子目录,可以将 prefixdir 配置成 `/`。

```lua
set_prefix("/", {bindir = "mybin", libdir = "mylib", includedir = "myinc"})
set_prefixdir("/", {bindir = "mybin", libdir = "mylib", includedir = "myinc"})
```

```sh
Expand Down