doc: another example of using def
Merge pull request #9 from julienaubert/master

doc: another example of using def