From 94aea9ecb12bbb7d402b19bbacd46af4df0ec1fa Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 5 Apr 2021 13:31:41 -0500 Subject: [PATCH] Update example. --- examples/hello_world.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/hello_world.rs b/examples/hello_world.rs index c22f1bb..b7d13ce 100644 --- a/examples/hello_world.rs +++ b/examples/hello_world.rs @@ -13,7 +13,7 @@ fn main() { } // Speaks a bunch of messages and changes TTS properties. -fn setup(mut tts: ResMut) { +fn setup(mut tts: ResMut) { tts.speak("Hello, world.", false).unwrap(); let Features { rate, .. } = tts.supported_features(); if rate { @@ -70,7 +70,7 @@ fn event_poll(mut events: EventReader) { } // Shows how to output speech in response to a keypress. -fn greet(input: Res>, mut tts: ResMut) { +fn greet(input: Res>, mut tts: ResMut) { if input.just_pressed(KeyCode::G) { tts.speak("Hey there!", true).unwrap(); }