Skip to content

Commit 1a14d50

Browse files
authored
Fix minor typo in example.rs (smol-rs#40)
1 parent 01e36f4 commit 1a14d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/timeout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn main() -> io::Result<()> {
5252
io::Result::Ok(false)
5353
};
5454

55-
// Run a future that times out after 5 seconds.
55+
// Run a future that times out after 1 second.
5656
let timeout_s = 1;
5757
let timeout = async move {
5858
Timer::after(std::time::Duration::from_secs(timeout_s)).await;

0 commit comments

Comments
 (0)