Skip to content

Commit

Permalink
Fix examples in README
Browse files Browse the repository at this point in the history
Fix examples
  • Loading branch information
notnightly authored Dec 13, 2023
1 parent 00c6870 commit 1c754f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() {
language: Languages::English, // use the Languages enum
tld: "com",
};
narrator.speak("Hello, World!");
narrator.speak("Hello, World!").unwrap();
}
```

Expand All @@ -33,12 +33,12 @@ fn main() {
language: Languages::English,
tld: "com",
};
narrator.speak("Starting test?");
narrator.speak("Starting test?").unwrap();
let ms = std::time::Duration::from_millis(1000);
for _x in 1..9 {
narrator.volume += 1.0;
let to_speak: String = String::from("Loop ") + &narrator.volume.to_string();
narrator.speak(&to_speak);
narrator.speak(&to_speak).unwrap();
std::thread::sleep(ms);
}
}
Expand Down

0 comments on commit 1c754f3

Please sign in to comment.