aboutsummaryrefslogtreecommitdiff
path: root/docs/pages/other/features.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-30 18:04:12 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-30 18:04:12 +0800
commit03330fb5aa89b4fc2d8f753562899166ffe7c3d9 (patch)
tree912a0d758bf191c3a3243f38de56d40005eced8a /docs/pages/other/features.md
parentbec5bf25e049bc049edb2e799d1917eb26ae7ce5 (diff)
docs: clean up code blocks and trailing whitespace in readme
Diffstat (limited to 'docs/pages/other/features.md')
-rw-r--r--docs/pages/other/features.md7
1 files changed, 3 insertions, 4 deletions
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`