Skip to content

Commit

Permalink
Add missing doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmunns committed Apr 25, 2024
1 parent eece3c5 commit 0d5ed82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ impl<T> ConstInitCell<T> {
}
}

/// Try to take the `ConstInitCell`, returning None if it was already taken
#[inline]
#[allow(clippy::mut_from_ref)]
pub fn try_take(&'static self) -> Option<&'static mut T> {
Expand Down

0 comments on commit 0d5ed82

Please sign in to comment.