Skip to content

Commit

Permalink
fix typo in docstring for DtUpdater example: line -> square (ManimCom…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan-xy authored Dec 9, 2023
1 parent 27d5360 commit 0cba710
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manim/mobject/mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,11 +968,11 @@ def dot_position(mobject):
class DtUpdater(Scene):
def construct(self):
line = Square()
square = Square()
#Let the line rotate 90° per second
line.add_updater(lambda mobject, dt: mobject.rotate(dt*90*DEGREES))
self.add(line)
#Let the square rotate 90° per second
square.add_updater(lambda mobject, dt: mobject.rotate(dt*90*DEGREES))
self.add(square)
self.wait(2)
See also
Expand Down

0 comments on commit 0cba710

Please sign in to comment.