diff --git a/source/docs/property/setter.rst b/source/docs/property/setter.rst index 892d807..5d54ba6 100644 --- a/source/docs/property/setter.rst +++ b/source/docs/property/setter.rst @@ -8,7 +8,7 @@ Overrides attribute access mechanism. Syntax ==== -property.getter(method) +property.setter(method) method A method to decorate. @@ -50,6 +50,10 @@ The returned property also has the attributes fget, fset, and fdel corresponding Example ==== ->>> foo -3.6055512754639896 +>>> c = C() +>>> c.x == None +True +>>> c.x = 'bar' +>>> c.x +'bar'