From c1bb12a5eab6de85f18b4bc3740c73da8c0d73f0 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 25 Jan 2010 19:20:30 +0000 Subject: [PATCH] Fix markup. --- Doc/library/itertools.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 250c84249e3..14a7afd7748 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -760,7 +760,7 @@ which incur interpreter overhead. Note, many of the above recipes can be optimized by replacing global lookups with local variables defined as default values. For example, the -*dotproduct* recipe can be written as: +*dotproduct* recipe can be written as:: def dotproduct(vec1, vec2, sum=sum, imap=imap, mul=operator.mul): return sum(imap(mul, vec1, vec2))