summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorZuhaitz <zuhaitz.zechhub@gmail.com>2026-01-20 18:12:21 +0000
committerGitHub <noreply@github.com>2026-01-20 18:12:21 +0000
commit6165c437410052fa177fc1245c176ec6709a9da7 (patch)
tree25ec43d4a2a51f96d90e0086ec6c0c2278fee0d6 /README.md
parentb2ea847ba2c5e124d629569290f6aa7381c089fd (diff)
Better wording (resource semantics)
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
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."*