]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix example code in curses tutorial (#126446)
authorJiayu Yi <yijiayu@gmail.com>
Thu, 10 Apr 2025 12:06:38 +0000 (20:06 +0800)
committerGitHub <noreply@github.com>
Thu, 10 Apr 2025 12:06:38 +0000 (15:06 +0300)
Doc/howto/curses.rst

index f9ad81e38f8dc3d4eb512e4d94c08f45dd4110a7..6994a5328e81496d0568f2459f636697de246a6a 100644 (file)
@@ -145,8 +145,8 @@ importing the :func:`curses.wrapper` function and using it like this::
            v = i-10
            stdscr.addstr(i, 0, '10 divided by {} is {}'.format(v, 10/v))
 
-       stdscr.refresh()
-       stdscr.getkey()
+           stdscr.refresh()
+           stdscr.getkey()
 
    wrapper(main)