From 23065ddf6ed0b3762dda5f5059888eb52b5c2415 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Mon, 19 Jan 2026 22:48:04 +0000 Subject: Fixes related to memory safety. I will work more on this related to the stdlib. --- docs/std/vec.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/std') 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 { | 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. | -- cgit v1.2.3