diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 2196e53502f..24e2684496c 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -758,10 +758,10 @@ which incur interpreter overhead. "Return first n items of the iterable as a list" return list(islice(iterable, n)) - def prepend(value, iterator): - "Prepend a single value in front of an iterator" + def prepend(value, iterable): + "Prepend a single value in front of an iterable" # prepend(1, [2, 3, 4]) --> 1 2 3 4 - return chain([value], iterator) + return chain([value], iterable) def tabulate(function, start=0): "Return function(0), function(1), ..."