Skip to content

Commit 2488afe

Browse files
knotapunCopilot
andauthored
Update docs/recipes-images.rst
Add missing f-string. Co-authored-by: Copilot <[email protected]>
1 parent 165b67c commit 2488afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/recipes-images.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ This script creates an approximate image of it as a PNG, by going down to one-pi
525525
t1 = time.perf_counter()
526526
pm.save("sierpinski-punch.png")
527527
t2 = time.perf_counter()
528-
print ("{round(t1-t0,3)} sec to create / fill the pixmap")
529-
print ("{round(t2-t1,3)} sec to save the image")
528+
print (f"{round(t1-t0,3)} sec to create / fill the pixmap")
529+
print (f"{round(t2-t1,3)} sec to save the image")
530530

531531
The result should look something like this:
532532

0 commit comments

Comments
 (0)