From 6165c437410052fa177fc1245c176ec6709a9da7 Mon Sep 17 00:00:00 2001 From: Zuhaitz Date: Tue, 20 Jan 2026 18:12:21 +0000 Subject: Better wording (resource semantics) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 635164e..3103c44 100644 --- a/README.md +++ b/README.md @@ -438,7 +438,7 @@ autofree var types = malloc(1024); Zen C treats types with destructors (like `File`, `Vec`, or malloc'd pointers) as **Resources**. To prevent double-free errors, resources cannot be implicitly duplicated. - **Move by Default**: Assigning a resource variable transfers ownership. The original variable becomes invalid (Moved). -- **Copy Types**: Simple Plain Old Data (int, Point, etc.) can opt-in to `Copy` behavior, making assignment a duplication. +- **Copy Types**: Types without destructors may opt-in to `Copy` behavior, making assignment a duplication. **Diagnostics & Philosophy**: If you see an error "Use of moved value", the compiler is telling you: *"This type owns a resource (like memory or a handle) and blindly copying it is unsafe."* -- cgit v1.2.3