Freeing
We'll cover the following...
You don’t need this section to understand how to use strings correctly. But it does help you understand why ownership is so important in Rust, and why Rust is such an awesome language.
Above, I very briefly mentioned to you the concept of freeing memory. When you allocate memory on the heap, what you’re doing is asking the dynamic memory allocator to set aside a bit of the computer’s memory for you to use. While you’re using that memory, nothing else can use it. The dynamic allocator marks it as off-limits, and will neither give it to your program to use, nor to any other program to use. That’s a good ...