Fix minor typo in example.rs (#40)

This commit is contained in:
John Nunley 2023-04-07 10:14:06 -07:00 committed by GitHub
parent 01e36f4abe
commit 1a14d501cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ fn main() -> io::Result<()> {
io::Result::Ok(false) io::Result::Ok(false)
}; };
// Run a future that times out after 5 seconds. // Run a future that times out after 1 second.
let timeout_s = 1; let timeout_s = 1;
let timeout = async move { let timeout = async move {
Timer::after(std::time::Duration::from_secs(timeout_s)).await; Timer::after(std::time::Duration::from_secs(timeout_s)).await;