X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/fb470b22751497032d97accad2ef5850d520a589..8758d64fa600a64154978b245540e9e0c6af9db1:/src/main.rs diff --git a/src/main.rs b/src/main.rs index e1e4a64..8fbc933 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,7 +28,9 @@ // a garbage collector) or vice versa. Rust can run without dynamic allocation (i.e., without // a heap), and even without an operating system. In fact, Rust rules out more classes of bugs // than languages that achieve safety with a garbage collector: Besides dangling pointers and -// double-free, Rust also prevents issues such as iterator invalidation and data races. +// double-free, Rust also prevents issues such as iterator invalidation and data races. Finally, +// it cleans up behind you, and deallocates resources (memory, but also file descriptors and really +// anything) when you don't need them anymore. // // // Getting started