mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2024-11-09 00:43:59 +08:00
typo
This commit is contained in:
parent
289b1436b5
commit
164149c269
@ -17,7 +17,7 @@ different way in the below paragraph /Carol -->
|
|||||||
|
|
||||||
让我们首先看看 `*` 如何处理引用,接着尝试定义我们自己的类 `Box<T>` 类型并看看为何 `*` 不能像引用一样工作。我们会探索如何实现 `Deref` trait 使得智能指针以类似引用的方式工作变为可能。最后,我们会讨论 Rust 的 **解引用强制多态**(*deref coercions*)功能和它是如何一同处理引用或智能指针的。
|
让我们首先看看 `*` 如何处理引用,接着尝试定义我们自己的类 `Box<T>` 类型并看看为何 `*` 不能像引用一样工作。我们会探索如何实现 `Deref` trait 使得智能指针以类似引用的方式工作变为可能。最后,我们会讨论 Rust 的 **解引用强制多态**(*deref coercions*)功能和它是如何一同处理引用或智能指针的。
|
||||||
|
|
||||||
### 通过 `*` 追钟指针的值
|
### 通过 `*` 追踪指针的值
|
||||||
|
|
||||||
<!-- I want to avoid too much cross referencing, I think it can be distracting,
|
<!-- I want to avoid too much cross referencing, I think it can be distracting,
|
||||||
make the reader feel they need to flip back but they don't really, here -->
|
make the reader feel they need to flip back but they don't really, here -->
|
||||||
|
Loading…
Reference in New Issue
Block a user