Skip to content

Commit

Permalink
restore access on variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Riolo committed Apr 15, 2015
1 parent 650062b commit 8dab2e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/martian/core.txt
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ can be given names using the ``name`` directive::
...
... all_animals = {}
... def create_animal(name):
... return animal.all_animals[name]()
... return all_animals[name]()
>>> from martiantest.fake import animal

Let's define a grokker that can grok an ``Animal``. We could either
Expand Down Expand Up @@ -403,7 +403,7 @@ Let's test our grokker::

We can create a snake now::

>>> create_animal('snake')
>>> animal.create_animal('snake')
<Animal snake>

Note that we can supply a different default value for the directive
Expand Down

0 comments on commit 8dab2e1

Please sign in to comment.