Skip to content

Commit

Permalink
docs: readme fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Julián Cortés committed Jul 20, 2020
1 parent 534f502 commit c24979a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can do this:
class Example(Entity):
_value = fields.StrField()
_other_value = fields.IntField(immutable=False)
_default = fields.StrField(private=False, default_value='hello')
_default = fields.StrField(private=True, default_value='hello')
def do_something(self):
return f'{self._default} world'
Expand Down Expand Up @@ -112,7 +112,7 @@ Above example with ``dataclass`` decorator:
return f'{self._default} world'
Even this code doesn't work becasue ``__init__`` method has ``_value``,
``_other_value`` and ``default``. Therefore the instantation will be:
``_other_value`` and ``_default``. Therefore the instantation will be:

.. code-block:: python
Expand Down

0 comments on commit c24979a

Please sign in to comment.