diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/std/vec.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/std/vec.md b/docs/std/vec.md index a0422bb..bda8d5b 100644 --- a/docs/std/vec.md +++ b/docs/std/vec.md @@ -87,4 +87,5 @@ struct Vec<T> { | Method | Signature | Description | | :--- | :--- | :--- | | **Free** | `free(self)` | Manually frees memory. Safe to call multiple times. | +| **Forget** | `forget(self)` | Detaches the memory buffer from the vector (sets fields to 0). Prevents `Drop` from freeing memory. Useful for implementing move semantics or transferring ownership. | | **Trait** | `impl Drop for Vec` | Automatically calls `free()` when `Vec` goes out of scope. | |
