From: Daniel Greenfeld Date: Sat, 17 May 2014 23:42:16 +0000 (-0700) Subject: Readme fix X-Git-Tag: 0.1.3~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e221a76ef6ddfdb15044a1a4f82e74d36687316;p=cached-property.git Readme fix --- 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 --------