diff --git a/doc/Memory.md b/doc/Memory.md index f4d0067479b9c6cbf15af8b477ba20a27b3dafd7..733be5bacea2051c15bf1c58ee02093244186395 100644 --- a/doc/Memory.md +++ b/doc/Memory.md @@ -12,7 +12,7 @@ There are several advantages with the Rust memory model. To name a few: * The Rust memory model allows for "fearless programming", i.e., as a programmer you don't have to focus efforts on memory safety, the compiler will stop you if you do something potentially dangerous; -* Programming errors that indirectly lead to memory errors can be spoted at compile time. (E.g, attempting to change the lenght of an array `a` inside an iterator over `a` will be spoted by the compiler.); +* Programming errors that indirectly lead to memory errors can be spoted at compile time. (E.g, attempting to change the lenght of an array `a` inside an iterator over `a` will be spotted by the compiler and yielt an error.); * The Rust memory model allows for aggressive optimization, i.e., the compiler will host detailed information regarding the mutability of references and make *safe* assumpitions leading to efficient implementations.