A community-maintained Python framework for creating mathematical animations.
fix typo in docstring for DtUpdater example: line -> square (#3509)
yuan0cba710a389a
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.pyindex 6a1f18c4c..555a22575 100644--- a/manim/mobject/mobject.py+++ b/manim/mobject/mobject.py@@ -968,11 +968,11 @@ class 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