aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/docs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-03 01:54:05 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-03 01:54:05 +0800
commitd860a25ea43fc190c0463b8854492f8d6c630b48 (patch)
treebdd7dc095cb4f7fe1717f3d2557b9f5fbe58dfcf /mingling/src/docs
parentc01c3a53a5e117c60df846de7d2c1bdc43627a0b (diff)
docs(mingling): fix doc example compile error
Diffstat (limited to 'mingling/src/docs')
-rw-r--r--mingling/src/docs/gen_program.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/mingling/src/docs/gen_program.md b/mingling/src/docs/gen_program.md
index 91e7b91..16402c0 100644
--- a/mingling/src/docs/gen_program.md
+++ b/mingling/src/docs/gen_program.md
@@ -7,10 +7,12 @@ You can access them like this:
```rust
# pub struct ThisProgram;
# impl ThisProgram { fn new() -> Self { ThisProgram } }
+# fn main() {
// main.rs / lib.rs
// Use them here via crate::*
let mut program = crate::ThisProgram::new();
+# }
// `ThisProgram` is generated here
// |