diff --git a/docs/recipes.rst b/docs/recipes.rst index 0cadcf7..3a6cf02 100644 --- a/docs/recipes.rst +++ b/docs/recipes.rst @@ -251,7 +251,7 @@ the Raspberry Pi when the button is held for 2 seconds:: from signal import pause def shutdown(): - check_call(['sudo', 'poweroff']) + check_call(['sudo', 'poweroff']) shutdown_btn = Button(17, hold_time=2) shutdown_btn.when_held = shutdown