mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
docs(allocator): update docs for Vec (#8555)
Remove line from `oxc_allocator::Vec` docs saying "Should only be used for storing AST types.". We are now using `Vec` in `Semantic` too, and there's no problem with that.
This commit is contained in:
parent
a04833787d
commit
fa1a6d5ede
1 changed files with 0 additions and 2 deletions
|
|
@ -22,8 +22,6 @@ use crate::{Allocator, Box, String};
|
|||
|
||||
/// A `Vec` without [`Drop`], which stores its data in the arena allocator.
|
||||
///
|
||||
/// Should only be used for storing AST types.
|
||||
///
|
||||
/// Must NOT be used to store types which have a [`Drop`] implementation.
|
||||
/// `T::drop` will NOT be called on the `Vec`'s contents when the `Vec` is dropped.
|
||||
/// If `T` owns memory outside of the arena, this will be a memory leak.
|
||||
|
|
|
|||
Loading…
Reference in a new issue