aboutsummaryrefslogtreecommitdiff
path: root/examples/demo
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-08-15 15:59:38 +0100
committergingerBill <bill@gingerbill.org>2023-08-15 15:59:38 +0100
commitd9a2d29d00bb2db32df41532fdb9af4e0381f3a7 (patch)
tree09c6e0ecb0294226703294c8b46eac312b4a0917 /examples/demo
parent27931249ced2de59d51ac8765924ece2b4336c17 (diff)
Update demo.odin to #align(N) style
Diffstat (limited to 'examples/demo')
-rw-r--r--examples/demo/demo.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index 94aafe8b2..a320749d6 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -560,7 +560,7 @@ struct_type :: proc() {
{
// Structs can tagged with different memory layout and alignment requirements:
- a :: struct #align 4 {} // align to 4 bytes
+ a :: struct #align(4) {} // align to 4 bytes
b :: struct #packed {} // remove padding between fields
c :: struct #raw_union {} // all fields share the same offset (0). This is the same as C's union
}