From b4cef6e601777b8c4b18df118689f8ac310fa835 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 13 Apr 2026 08:29:55 +0800 Subject: Update completion script generation API --- mingling/src/example_docs.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mingling/src/example_docs.rs') 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(); /// } /// ``` /// -- cgit