From 1ea7e74ec0e861a89f4e52a951b2fb722a3ad04d Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Thu, 18 May 2023 14:05:38 +0800 Subject: [PATCH] dev(core): fix document --- core/src/concepts/query.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/concepts/query.rs b/core/src/concepts/query.rs index 008002c8f..4f5477c32 100644 --- a/core/src/concepts/query.rs +++ b/core/src/concepts/query.rs @@ -86,10 +86,12 @@ impl QueryRef { result.map(QueryResult).map_err(Self::clone_err) } - /// Gets the reference to the font load result. + /// Gets the reference to the (maybe uninitialized) result. /// /// Returns `None` if the cell is empty, or being initialized. This /// method never blocks. + /// + /// It is possible not hot, so that it is non-inlined pub fn get_uninitialized(&self) -> QueryResult<'_, Option>> { let borrowed = self.cell.borrow_mut(); let result = RefMut::map(borrowed, |(_, ref mut res)| res);