Skip to content

Commit

Permalink
[Doc] Fixing typo in impl.py on ti.grouped function documentation (#8407
Browse files Browse the repository at this point in the history
)

the example code comment was missing a "ti." when calling ndrange, in
the "with ti.grouped" section
  • Loading branch information
quentinwarnant authored Nov 14, 2023
1 parent 5edb20b commit d472853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/taichi/lang/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ def grouped(x):
prints 0, 1, 2, 3, 4, 5
>>> # with ti.grouped
>>> for I in ti.grouped(ndrange(2, 3)):
>>> for I in ti.grouped(ti.ndrange(2, 3)):
>>> print(I)
prints [0, 0], [0, 1], [0, 2], [1, 0], [1, 1], [1, 2]
"""
Expand Down

0 comments on commit d472853

Please sign in to comment.