aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/docs/lib.md
diff options
context:
space:
mode:
Diffstat (limited to 'mingling/src/docs/lib.md')
-rw-r--r--mingling/src/docs/lib.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/mingling/src/docs/lib.md b/mingling/src/docs/lib.md
index 697f6c5..2f8c8b9 100644
--- a/mingling/src/docs/lib.md
+++ b/mingling/src/docs/lib.md
@@ -22,20 +22,20 @@ Here is a basic project written using **Mingling**:
```rust
use mingling::prelude::*;
-dispatcher!("greet", CMDGreet => EntryGreet);
+dispatcher!("greet", EntryGreet);
fn main() {
- let mut program = ThisProgram::new();
- program.with_dispatcher(CMDGreet);
+ let program = ThisProgram::new();
program.exec_and_exit();
}
-pack!(ResultName = String);
+#[derive(Grouped, Wrap)]
+pub struct ResultName(String);
#[chain]
fn handle_greet(args: EntryGreet) -> Next {
let name: ResultName = args
- .inner
+ .0
.first()
.cloned()
.unwrap_or_else(|| "World".to_string())
@@ -80,7 +80,7 @@ See [Examples](EXAMPLES/index.html) or [Helpdoc](https://mingling-rs.github.io/m
## About Features
-All features of `Mingling` are opt-in. To learn what each feature provides, see [Features](feature/index.html) or [Helpdoc](https://mingling-rs.github.io/mingling/docs/doc.html#/pages/other/features)
+All features of `Mingling` are opt-in. To learn what each feature provides, see [Features](feature/index.html) or [Helpdoc](https://mingling-rs.github.io/mingling/docs/index.html#/pages/other/features)
## Use unreleased version