File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -97,23 +97,23 @@ where
9797``` mermaid
9898graph TD
9999 subgraph 用户代码
100- A["` async fn my_func() { ... await ... }` "]
100+ A["async fn my_func() { ... await ... }"]
101101 end
102102
103103 subgraph 编译器魔法
104- A --1. 编译为--> B["匿名状态机\n (实现了 ` Coroutine` trait)"]
105- B --2. 包裹进--> C["匿名适配器 (Wrapper)"]
104+ A -- 编译为 --> B["匿名状态机 (实现了 Coroutine trait)"]
105+ B -- 包裹进 --> C["匿名适配器 (Wrapper)"]
106106 end
107107
108108 subgraph 标准库 Trait
109- D["` trait Coroutine`\n (语言底层原语)"]
110- E["` trait Future`\n (生态公共协议)"]
109+ D["trait Coroutine (语言底层原语)"]
110+ E["trait Future (生态公共协议)"]
111111 end
112112
113113 B -- 实现 --> D
114114 C -- 实现 --> E
115115
116- A --最终对外表现为--> F["一个实现了 ` Future` 的类型"]
116+ A --最终对外表现为--> F["一个实现了 Future 的类型"]
117117
118118 style D fill:#f9f,stroke:#333,stroke-width:2px
119119 style E fill:#ccf,stroke:#333,stroke-width:2px
You can’t perform that action at this time.
0 commit comments