Skip to content

Commit 2964e72

Browse files
yoshuawuytsStjepan Glavina
and
Stjepan Glavina
authored
Update src/future/timeout.rs
Co-Authored-By: Stjepan Glavina <[email protected]>
1 parent 6b76fb1 commit 2964e72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/future/timeout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use crate::task::{Context, Poll};
2929
/// # Ok(()) }) }
3030
/// ```
3131
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
32-
#[cfg(feature = "unstable")]
32+
#[cfg(any(feature = "unstable", feature = "docs"))]
3333
pub async fn timeout<F, T>(dur: Duration, f: F) -> Result<T, TimeoutError>
3434
where
3535
F: Future<Output = T>,

0 commit comments

Comments
 (0)