From 03330fb5aa89b4fc2d8f753562899166ffe7c3d9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 30 Jun 2026 18:04:12 +0800 Subject: docs: clean up code blocks and trailing whitespace in readme --- docs/_zh_CN/pages/other/features.md | 7 +++---- docs/pages/other/features.md | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/_zh_CN/pages/other/features.md b/docs/_zh_CN/pages/other/features.md index 8b19b31..bfd9efc 100644 --- a/docs/_zh_CN/pages/other/features.md +++ b/docs/_zh_CN/pages/other/features.md @@ -39,13 +39,12 @@ async fn handle_state_foo(foo: StateFoo) -> Next { 1. `comp` 特性下的补全脚本生成: ```rust +// BUILD TIME // Features: ["builds", "comp"] use mingling::build::build_comp_scripts; -fn main() { - // 为 `myprogram` 生成补全脚本 - build_comp_scripts("myprogram").unwrap(); -} +// 为 `myprogram` 生成补全脚本 +build_comp_scripts("myprogram").unwrap(); ``` ## 特性 `clap` diff --git a/docs/pages/other/features.md b/docs/pages/other/features.md index 891083d..813ccdd 100644 --- a/docs/pages/other/features.md +++ b/docs/pages/other/features.md @@ -39,13 +39,12 @@ Enables scripts needed for use in `build.rs`, currently including: 1. Completion script generation under the `comp` feature: ```rust +// BUILD TIME // Features: ["builds", "comp"] use mingling::build::build_comp_scripts; -fn main() { - // Generate completion scripts for `myprogram` - build_comp_scripts("myprogram").unwrap(); -} +// Generate completion scripts for `myprogram` +build_comp_scripts("myprogram").unwrap(); ``` ## Feature `clap` -- cgit