X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/6b347ac8c0f8710bd0ca42d20d32511fcb53f188..76de9227939c9244b1e5bd9364542c92991140c8:/src/main.rs?ds=sidebyside 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