Skip to content

Commit 4e99c72

Browse files
committed
fix: 🐛 修复 mermaid 中的不能使用 markdown 特性
1 parent 2928554 commit 4e99c72

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/第 25 章 协程/25.6 Coroutine 与 Future.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,23 @@ where
9797
```mermaid
9898
graph 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

0 commit comments

Comments
 (0)