From 95dac7c1f972d3b5d375469cdf431d65dff87473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Mon, 15 Jul 2024 23:47:34 +0900 Subject: [PATCH] doc --- crates/swc_allocator/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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].