diff --git a/README.md b/README.md index 52344f7..83a15ba 100644 --- a/README.md +++ b/README.md @@ -178,9 +178,8 @@ Point(x=1, y=2) Iterator -------- -**Iterator is any object with next() special method.** ```python - = iter() # Calling `iter()` returns the same object. + = iter() = iter(, to_exclusive) # Sequence of return values until 'to_exclusive'. = next( [, default]) # Raises StopIteration or returns 'default' on end. ``` diff --git a/index.html b/index.html index 15636f1..8464b69 100644 --- a/index.html +++ b/index.html @@ -320,8 +320,7 @@ Point(x=1, y=2 ('x', 'y')

#Iterator

-

Iterator is any object with next() special method.

-
<iter> = iter(<collection>)                 # Calling `iter(<iter>)` returns the same object.
+
<iter> = iter(<collection>)
 <iter> = iter(<function>, to_exclusive)     # Sequence of return values until 'to_exclusive'.
 <el>   = next(<iter> [, default])           # Raises StopIteration or returns 'default' on end.