diff options
author | ?ukasz Langa <lukasz@langa.pl> | 2013-06-05 10:31:42 +0200 |
---|---|---|
committer | ?ukasz Langa <lukasz@langa.pl> | 2013-06-05 10:31:42 +0200 |
commit | 711b7d4f0104442bdcd4e669d17fe96117e70cf6 (patch) | |
tree | 4c5ca6c0c9d748741a489d1471d61847e9253659 | |
parent | 608c2c6ed80e19959c84c595c980a4f39bad9851 (diff) | |
download | singledispatch-711b7d4f0104442bdcd4e669d17fe96117e70cf6.tar.gz |
correct usage example in README.rst
-rw-r--r-- | README.rst | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ To define a generic function, decorate it with the ``@singledispatch`` decorator. Note that the dispatch happens on the type of the first argument, create your function accordingly:: - >>> from functools import singledispatch + >>> from singledispatch import singledispatch >>> @singledispatch ... def fun(arg, verbose=False): ... if verbose: |