summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commit711b7d4f0104442bdcd4e669d17fe96117e70cf6 (patch)
tree4c5ca6c0c9d748741a489d1471d61847e9253659
parent608c2c6ed80e19959c84c595c980a4f39bad9851 (diff)
downloadsingledispatch-711b7d4f0104442bdcd4e669d17fe96117e70cf6.tar.gz
correct usage example in README.rst
-rw-r--r--README.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 6b03da7..75404f6 100644
--- a/README.rst
+++ b/README.rst
@@ -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: