From 7e221a76ef6ddfdb15044a1a4f82e74d36687316 Mon Sep 17 00:00:00 2001 From: Daniel Greenfeld Date: Sat, 17 May 2014 16:42:16 -0700 Subject: [PATCH] Readme fix --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index bb50ca9..04d0526 100644 --- a/README.rst +++ b/README.rst @@ -63,8 +63,8 @@ Let's convert the boardwalk property into a `cached_property`. def __init__(self): self.boardwalk_price = 500 - @property - def cached_property(self): + @cached_property + def boardwalk(self): # Again, this is a silly example. Don't worry about it, this is # just an example for clarity. self.boardwalk_price += 50 @@ -82,7 +82,7 @@ Now when we run it the price stays at $550. >>> monopoly.boardwalk 550 -Why doesn't the value of `m.boardwalk` change? Because it's a **cached property**! +Why doesn't the value of `monopoly.boardwalk` change? Because it's a **cached property**! Credits -------- -- 2.30.2