Remove confusing comment from ext types

This commit is contained in:
PThorpe92 2025-02-27 20:21:22 -05:00
parent 5b8efd92a4
commit c2fe1f631c
No known key found for this signature in database
GPG key ID: 66DB3FBACBDD05CC

View file

@ -390,12 +390,7 @@ impl Value {
}
}
/// Extension authors should __not__ use this function.
/// Extensions should _not_ use this method directly. When used properly,
/// core will own all Value types and they should not need to be manually free'd
/// in any extension code. However, if you are arbitrarily creating `Value` types
/// that do not follow the intended control flow/API of the exposed traits, and are
/// not returned to `core`, your extension _will_ leak the underlying memory.
/// Extension authors should __not__ use this function, or enable the 'core_only' feature
///
/// # Safety
/// consumes the value while freeing the underlying memory with null check.