diff --git a/crates/swc_allocator/src/lib.rs b/crates/swc_allocator/src/lib.rs index a83335922330..5fd3f8e57faf 100644 --- a/crates/swc_allocator/src/lib.rs +++ b/crates/swc_allocator/src/lib.rs @@ -19,8 +19,8 @@ //! [crate::vec::Vec] very fast. //! //! In this mode, you need to be careful while using [crate::boxed::Box] and -//! [crate::vec::Vec]. Be sure to use same [Allocator] for allocation and -//! deallocation. +//! [crate::vec::Vec]. You should ensure that [Allocator] outlives all +//! [crate::boxed::Box] and [crate::vec::Vec] created in the scope. //! //! Recommened way to use this mode is to wrap the whole operations in //! a call to [Allocator::scope].