From 0c2ce52ac41f926b39306088a514ad3fb34d4f6f Mon Sep 17 00:00:00 2001 From: Afirez <707627402@qq.com> Date: Thu, 18 Jun 2020 20:29:32 +0800 Subject: [PATCH] fix doc missing in #815 --- src/task/spawn_local.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/task/spawn_local.rs b/src/task/spawn_local.rs index 04da020..7e0ce6c 100644 --- a/src/task/spawn_local.rs +++ b/src/task/spawn_local.rs @@ -7,6 +7,7 @@ use crate::task::{Builder, JoinHandle}; /// # Examples /// /// ``` +/// # #[cfg(feature = "unstable")] /// # async_std::task::block_on(async { /// # /// use async_std::task; @@ -19,6 +20,8 @@ use crate::task::{Builder, JoinHandle}; /// # /// # }) /// ``` +#[cfg_attr(feature = "docs", doc(cfg(unstable)))] +#[inline] pub fn spawn_local(future: F) -> JoinHandle where F: Future + 'static,