1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-26 09:12:58 +02:00

Update Speaker Notes for compile-time.md (#205)

* Update Speaker Notes for compile-time.md

The definition of memory leaks is indeed blurry, so it is important not have right expectations about this particular kind of error.

Co-authored-by: Martin Geisler <martin@geisler.net>
This commit is contained in:
Igor Petruk 2023-01-21 14:13:51 +00:00 committed by GitHub
parent 79decc5540
commit 25a32abef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,8 @@ are:
a value (meaning the destructor is never run).
* You can also accidentally create a [reference cycle] with `Rc` or
`Arc`.
* In fact, some will consider infinitely populating a collection a memory
leak and Rust does not protect from those.
For the purpose of this course, "No memory leaks" should be understood
as "Pretty much no *accidental* memory leaks".