Skip to content

Commit 8d99793

Browse files
author
Zheyuan Chen
authored
Update README.md
1 parent bf8fe21 commit 8d99793

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ range(10) /has/ '__iter__'
150150
- support pipe.
151151

152152
``` python
153-
from syntax_sugar import INF, NEGINF, take, each
153+
from syntax_sugar import INF, take, each
154154

155155
# CAUTION: this will infinitely print numbers
156156
for i in 1 /to/ INF:
@@ -160,7 +160,7 @@ list(1 /to/ INF /take/ 5)
160160
# there is a `take` functon which is similar to itertools.islice
161161
# return [1, 2, 3, 4, 5]
162162

163-
list(0 /to/ NEGINF /by/ 2 /take/ 5)
163+
list(0 /to/ -INF /by/ 2 /take/ 5)
164164
# also works with negative infinity.
165165
# return [0, -2, -4, -6, -8]
166166

0 commit comments

Comments
 (0)