mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-22 12:12:20 +08:00
Merge pull request #569 from VergeDX/main
[F] ch05-03-method-syntax.md: Typo "他" -> "它".
This commit is contained in:
commit
a69b51cdd0
@ -78,7 +78,7 @@ fn main() {
|
||||
>
|
||||
> Rust 并没有一个与 `->` 等效的运算符;相反,Rust 有一个叫 **自动引用和解引用**(*automatic referencing and dereferencing*)的功能。方法调用是 Rust 中少数几个拥有这种行为的地方。
|
||||
>
|
||||
> 他是这样工作的:当使用 `object.something()` 调用方法时,Rust 会自动为 `object` 添加 `&`、`&mut` 或 `*` 以便使 `object` 与方法签名匹配。也就是说,这些代码是等价的:
|
||||
> 它是这样工作的:当使用 `object.something()` 调用方法时,Rust 会自动为 `object` 添加 `&`、`&mut` 或 `*` 以便使 `object` 与方法签名匹配。也就是说,这些代码是等价的:
|
||||
>
|
||||
> <!-- CAN'T EXTRACT SEE BUG https://github.com/rust-lang/mdBook/issues/1127 -->
|
||||
> ```rust
|
||||
|
Loading…
Reference in New Issue
Block a user