Skip to content

Commit 42d678d

Browse files
Update Lib/turtle.py
Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent 6d381ec commit 42d678d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Lib/turtle.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3406,12 +3406,10 @@ def filling(self):
34063406

34073407
@contextmanager
34083408
def fill(self):
3409-
"""Create a filled shape.
3409+
"""A context manager for filling a shape.
34103410
3411-
No argument.
3412-
3413-
This function sets up a context manager that will automatically end
3414-
filling once exited.
3411+
Implicitly ensures the code block is wrapped with
3412+
begin_fill() and end_fill().
34153413
34163414
Example (for a Turtle instance named turtle):
34173415
>>> turtle.color("black", "red")

0 commit comments

Comments
 (0)