From 7203bb8a6502f3b00bfce28df8c717cc40738e50 Mon Sep 17 00:00:00 2001 From: Fabian Bornhofen Date: Thu, 12 Jan 2023 11:50:28 +0100 Subject: [PATCH] Capitalization in src/memory-management/rust.md --- src/memory-management/rust.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/memory-management/rust.md b/src/memory-management/rust.md index 644e4bcf..cb18e80b 100644 --- a/src/memory-management/rust.md +++ b/src/memory-management/rust.md @@ -5,15 +5,15 @@ Memory management in Rust is a mix: * Safe and correct like Java, but without a garbage collector. * Depending on which abstraction (or combonation of abstractions) you choose, can be a single unique pointer, reference counted, or atomically reference counted. * Scope-based like C++, but the compiler enforces full adherence. -* A rust user can choose the right abstraction for the situation, some even have no cost at runtime like C. +* A Rust user can choose the right abstraction for the situation, some even have no cost at runtime like C. It achieves this by modeling _ownership_ explicitly.
-* If asked how at this point, you can mention that in rust this is usually handled by RAII wrapper types such as [Box], [Vec], [Rc], or [Arc]. These encapsulate ownership and memory allocation via various means, and prevent the potential errors in C. +* If asked how at this point, you can mention that in Rust this is usually handled by RAII wrapper types such as [Box], [Vec], [Rc], or [Arc]. These encapsulate ownership and memory allocation via various means, and prevent the potential errors in C. -* You may be asked about destructors here, the [Drop] trait is the rust equivalent. +* You may be asked about destructors here, the [Drop] trait is the Rust equivalent.
@@ -21,4 +21,4 @@ It achieves this by modeling _ownership_ explicitly. [Vec]: https://doc.rust-lang.org/std/vec/struct.Vec.html [Rc]: https://doc.rust-lang.org/std/rc/struct.Rc.html [Arc]: https://doc.rust-lang.org/std/sync/struct.Arc.html -[Drop]: https://doc.rust-lang.org/std/ops/trait.Drop.html \ No newline at end of file +[Drop]: https://doc.rust-lang.org/std/ops/trait.Drop.html