Fix example code in curses tutorial (#126446)

This commit is contained in:
Jiayu Yi 2025-04-10 20:06:38 +08:00 committed by GitHub
parent 3d83c1ec61
commit 5fbe23ee4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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)