This commit is contained in:
Krzosa Karol
2022-09-30 16:47:31 +02:00
parent de7d109f00
commit 1e1f39bd6e

View File

@@ -58,7 +58,7 @@ Release :: (m: *Memory)
## Operator overload example
```
``` odin
Vec3 :: struct ;; x: F32; y: F32; z: F32
"-" :: (a: Vec3, b: Vec3): Vec3 ;; return {a.x-b.x, a.y-b.y, a.z-b.z}
"-" :: (a: Vec3): Vec3 ;; return {-a.x, -a.y, -a.z }
@@ -66,7 +66,7 @@ Vec3 :: struct ;; x: F32; y: F32; z: F32
## Unicode conversion example
```
``` zig
Utf8ToUtf32 :: (c: *U8, max_advance: S64): U32, S64
out_str: U32
advance: S64