aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/example_docs.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-04-13 08:29:55 +0800
committer魏曹先生 <1992414357@qq.com>2026-04-13 08:34:15 +0800
commitb4cef6e601777b8c4b18df118689f8ac310fa835 (patch)
tree9924d9cc23dd0f47ac59e67fd8c066a578d7d6f0 /mingling/src/example_docs.rs
parent5330813f18cd6fbf8aeab868b0a90ec836f08d57 (diff)
Update completion script generation APIHEADmain
Diffstat (limited to 'mingling/src/example_docs.rs')
-rw-r--r--mingling/src/example_docs.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs
index 1260509..1ee5118 100644
--- a/mingling/src/example_docs.rs
+++ b/mingling/src/example_docs.rs
@@ -82,11 +82,11 @@ pub mod example_basic {}
/// ```ignore
/// use mingling::build::{build_comp_scripts, build_comp_scripts_with_bin_name};
/// fn main() {
-/// // Generate completion scripts for the current program
-/// build_comp_scripts().unwrap();
+/// // Generate completion scripts for the current program, using the Cargo package name as the binary filename
+/// build_comp_scripts(env!("CARGO_PKG_NAME")).unwrap();
///
-/// // Or specify a specific name
-/// // build_comp_scripts_with_bin_name("your_bin").unwrap();
+/// // Or, explicitly specify the binary filename
+/// // build_comp_scripts("your_bin").unwrap();
/// }
/// ```
///