aboutsummaryrefslogtreecommitdiff
path: root/docs/pages/1-creating-your-first-program.md
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-05-17 22:30:50 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2026-05-17 22:38:39 +0800
commitf27f5aeb09616b932ab48f0905994879dd8bafe5 (patch)
tree2deea67f7ed910ad824fbcce2330ab5c475e51a0 /docs/pages/1-creating-your-first-program.md
parentbdd736ad9899aed74aaa2760c6e068dcae0e6925 (diff)
Rename `NextProcess` to `Next` across the codebase
Diffstat (limited to 'docs/pages/1-creating-your-first-program.md')
-rw-r--r--docs/pages/1-creating-your-first-program.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/pages/1-creating-your-first-program.md b/docs/pages/1-creating-your-first-program.md
index 0a6ff3c..56b7b90 100644
--- a/docs/pages/1-creating-your-first-program.md
+++ b/docs/pages/1-creating-your-first-program.md
@@ -163,7 +163,7 @@ dispatcher!("greet", GreetCommand => GreetEntry);
pack!(ResultGreetSomeone = String);
#[chain]
-fn handle_greet_entry(prev: GreetEntry) -> NextProcess {
+fn handle_greet_entry(prev: GreetEntry) -> Next {
let args = prev.inner;
let name = args
.first()
@@ -185,15 +185,15 @@ fn render_greet_someone(prev: ResultGreetSomeone) {
This inserts a `Chain` between the original `Dispatcher` and `Renderer`: it extracts the user's input params (or falls back to "World"), then passes them to the renderer to print to the terminal.
-##### About `NextProcess` 💡
+##### About `Next` 💡
- `NextProcess` is a placeholder generated by `gen_program!()`. After `#[chain]` expands, it's replaced by a type-erased type `ChainProcess<ThisProgram>` that the dispatcher can recognize, helping reduce boilerplate code.
+ `Next` is a placeholder generated by `gen_program!()`. After `#[chain]` expands, it's replaced by a type-erased type `ChainProcess<ThisProgram>` that the dispatcher can recognize, helping reduce boilerplate code.
> [!NOTE]
>
-> `NextProcess` is a temporary solution; the next update will wait until Rust's `Impl In Type Aliases` feature is stable.
+> `Next` is a temporary solution; the next update will wait until Rust's `Impl In Type Aliases` feature is stable.
>
-> **But don't worry**: the next `NextProcess` update won't introduce **breaking changes!**
+> **But don't worry**: the next `Next` update won't introduce **breaking changes!**
##### About `pack!` 💡
@@ -227,7 +227,7 @@ dispatcher!("greet", GreetCommand => GreetEntry);
pack!(ResultGreetSomeone = String);
#[chain]
-fn handle_greet_entry(prev: GreetEntry) -> NextProcess {
+fn handle_greet_entry(prev: GreetEntry) -> Next {
let args = prev.inner;
let name = args.first().cloned().unwrap_or_else(|| "World".to_string());