Skip to content

Commit

Permalink
update to ch19-05
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiserY committed Sep 19, 2023
1 parent f377834 commit 9950342
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ch15-06-reference-cycles.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> [ch15-06-reference-cycles.md](https://github.com/rust-lang/book/blob/main/src/ch15-06-reference-cycles.md)
> <br>
> commit 5a3a64d60b0dd786c35ca4daada7a4d20da33e5e
> commit c06006157b14b3d47b5c716fc392b77f3b2e21ce
Rust 的内存安全性保证使其难以意外地制造永远也不会被清理的内存(被称为 **内存泄漏**_memory leak_)),但并不是不可能。与在编译时拒绝数据竞争不同,Rust 并不保证完全地避免内存泄漏,这意味着内存泄漏在 Rust 被认为是内存安全的。这一点可以通过 `Rc<T>``RefCell<T>` 看出:创建引用循环的可能性是存在的。这会造成内存泄漏,因为每一项的引用计数永远也到不了 0,其值也永远不会被丢弃。

Expand Down
2 changes: 1 addition & 1 deletion src/ch19-05-advanced-functions-and-closures.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> [ch19-05-advanced-functions-and-closures.md](https://github.com/rust-lang/book/blob/main/src/ch19-05-advanced-functions-and-closures.md)
> <br>
> commit a8536189d5f1ba2f0b1187bfae787c0d89e2871c
> commit 21cf840842bdf768a798869f06373c96c1cc5122
本部分将探索一些有关函数和闭包的高级功能,这包括函数指针以及返回值闭包。

Expand Down
3 changes: 2 additions & 1 deletion src/title-page.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Rust 程序设计语言

> [title-page.md](https://github.com/rust-lang/book/blob/main/src/title-page.md) <br>
> [title-page.md](https://github.com/rust-lang/book/blob/main/src/title-page.md)
> <br>
> commit d94e03a18a2590ed3f1c67b859cb11528d2a2d5c
**本书的英文原版作者为 Steve Klabnik 和 Carol Nichols,并由 Rust 社区补充完善。本简体中文译本由 Rust 中文社区翻译。**
Expand Down

0 comments on commit 9950342

Please sign in to comment.