-
-
Notifications
You must be signed in to change notification settings - Fork 135
update function name in target: set_prefix → set_prefixdir #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4934,7 +4934,7 @@ installdir | |
| 如果我们配置: | ||
|
|
||
| ```lua | ||
| set_prefix("prefixdir") | ||
| set_prefixdir("prefixdir") | ||
| ``` | ||
|
|
||
| 就是增加一个总的子目录: | ||
|
|
@@ -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"}) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This example correctly uses |
||
| ``` | ||
|
|
||
| ```sh | ||
|
|
@@ -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 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example correctly uses
set_prefixdirwith two arguments. However, the function prototype documented forset_prefixdiron 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>).