From a4bed8aeed1be964b103048b7da01412883ac40e Mon Sep 17 00:00:00 2001 From: Per <Per Lindgren> Date: Sun, 5 Nov 2017 19:04:22 +0100 Subject: [PATCH] fix --- doc/Memory.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Memory.md b/doc/Memory.md index f4d0067..733be5b 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. -- GitLab