From a408fb7532f2e2cf68eb0e7a760d31486505e6eb Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Sun, 12 Jan 2014 00:46:09 -0800 Subject: [PATCH] Fixed an error in tutorial.md The freezing reference section described lending an *immutable* pointer but the example and logic suggest it should be a *mutable* pointer. --- doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index bb5e1bdd7bc77..4c67cd5e04b2a 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1429,7 +1429,7 @@ For a more in-depth explanation of references and lifetimes, read the ## Freezing -Lending an immutable pointer to an object freezes it and prevents mutation. +Lending a mutable pointer to an object freezes it and prevents mutation. `Freeze` objects have freezing enforced statically at compile-time. An example of a non-`Freeze` type is [`RefCell`][refcell].