Skip to content

Commit 6ba842d

Browse files
authored
doc: fixup Pollable example (#10586)
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent d69ef83 commit 6ba842d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/wasi-io/src/poll.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ pub struct DynPollable {
3939
///
4040
/// ```
4141
/// # // stub out so we don't need a dep to build the doctests:
42-
/// # mod tokio { pub mod time { pub use std::time::{Duration, Instant}; pub async fn sleep_until(_:
43-
/// Instant) {} } }
42+
/// # mod tokio { pub mod time { pub use std::time::{Duration, Instant}; pub async fn sleep_until(_: Instant) {} } }
4443
/// use tokio::time::{self, Duration, Instant};
4544
/// use wasmtime_wasi_io::{IoView, poll::{Pollable, subscribe, DynPollable}, async_trait};
4645
/// use wasmtime::component::Resource;

0 commit comments

Comments
 (0)