WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 6e60049

Browse files
committed
chore: fix outdated method documentation
1 parent 1e53ad6 commit 6e60049

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/eval/value/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,11 +1858,10 @@ impl ValueBlockRc {
18581858
///
18591859
/// # Safety
18601860
///
1861-
/// Same conditions as for [ValueBlockRc::from_raw].
1861+
/// `ptr` must be a valid, non-null pointer to a value block.
18621862
#[inline]
18631863
pub unsafe fn from_raw_unchecked(ptr: *mut u8) -> Self {
1864-
// Safety: if the pointer is coming from a call to `into_raw` (precondition), it can't be
1865-
// nulll (invariant of `ValueBlockRc`)
1864+
// Safety: function pre-condition
18661865
unsafe { ValueBlockRc(NonNull::new_unchecked(ptr)) }
18671866
}
18681867

0 commit comments

Comments
 (0)