Skip to content

Commit

Permalink
nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Sep 4, 2024
1 parent f2e6627 commit cfdb8f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions course/basic/advanced_type/struct.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,12 @@ zig 在使用结构体的时候还支持省略结构体类型,只要能让 zig

3. 还可以对 `packed` 的结构体的指针设置内存对齐来访问对应的字段:

:::details 示例

<<<@/code/release/struct.zig#aligned_struct

:::

### 命名规则

由于在 zig 中很多结构是匿名的(例如可以把一个源文件看作是一个匿名的结构体),所以 zig 基于一套规则来进行命名:
Expand Down

0 comments on commit cfdb8f0

Please sign in to comment.