Skip to content

Commit f2ab725

Browse files
authored
Reword LinearMemory and MemoryCreator note about being a new API (bytecodealliance#9916)
The API is three and a half years old at this point. Not really new anymore. But still something that requires care to use well, so leaving the disclaimer in place, just adjusted for 2025.
1 parent cb51a4f commit f2ab725

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/wasmtime/src/runtime/memory.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,8 @@ impl Memory {
669669
/// guard page. Additionally the safety concerns explained in ['Memory'], for
670670
/// accessing the memory apply here as well.
671671
///
672-
/// Note that this is a relatively new and experimental feature and it is
673-
/// recommended to be familiar with wasmtime runtime code to use it.
672+
/// Note that this is a relatively advanced feature and it is recommended to be
673+
/// familiar with wasmtime runtime code to use it.
674674
pub unsafe trait LinearMemory: Send + Sync + 'static {
675675
/// Returns the number of allocated bytes which are accessible at this time.
676676
fn byte_size(&self) -> usize;
@@ -702,8 +702,8 @@ pub unsafe trait LinearMemory: Send + Sync + 'static {
702702
/// treated as owned by wasmtime instance, and any modification of them outside
703703
/// of wasmtime invoked routines is unsafe and may lead to corruption.
704704
///
705-
/// Note that this is a relatively new and experimental feature and it is
706-
/// recommended to be familiar with wasmtime runtime code to use it.
705+
/// Note that this is a relatively advanced feature and it is recommended to be
706+
/// familiar with Wasmtime runtime code to use it.
707707
pub unsafe trait MemoryCreator: Send + Sync {
708708
/// Create a new `LinearMemory` object from the specified parameters.
709709
///

0 commit comments

Comments
 (0)