File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ export default [
187
187
items : [
188
188
{
189
189
text : "包管理" ,
190
- link : "/advanced /package_management" ,
190
+ link : "/engineering /package_management" ,
191
191
} ,
192
192
{
193
193
text : "构建系统" ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ zig 允许我们不列出所有的枚举值,未列出枚举值可以使用 `_`
56
56
57
57
:::info 🅿️ 提示
58
58
59
- ` @enumFromInt ` 能够将整数转换为枚举值。但需要注意,如果所选枚举类型中没有表示该整数的值,就会导致[ 未定义行为] ( ../../more /undefined_behavior#无效枚举转换 ) 。
59
+ ` @enumFromInt ` 能够将整数转换为枚举值。但需要注意,如果所选枚举类型中没有表示该整数的值,就会导致[ 未定义行为] ( ../../advanced /undefined_behavior#无效枚举转换 ) 。
60
60
61
61
如果目标枚举类型是非详尽枚举,那么除了涉及 ` @intCast ` 相关的安全检查之外,` @enumFromInt ` 始终能够得到有效的枚举值。
62
62
@@ -68,7 +68,7 @@ zig 允许我们不列出所有的枚举值,未列出枚举值可以使用 `_`
68
68
69
69
::: info 🅿️ 提示
70
70
71
- 此部分内容并非是初学者需要掌握的内容,它涉及到 zig 本身的类型系统和 [ 编译期反射] ( ../../more /reflection#构建新的类型 ) ,可以暂且跳过!
71
+ 此部分内容并非是初学者需要掌握的内容,它涉及到 zig 本身的类型系统和 [ 编译期反射] ( ../../advanced /reflection#构建新的类型 ) ,可以暂且跳过!
72
72
73
73
:::
74
74
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ outline: deep
55
55
56
56
平常使用过程中会面临另外的一个情况,就是匿名结构体要如何实现自引用呢?
57
57
58
- 答案是使用 [ ` @This ` ] ( https://ziglang.org/documentation/master/#This ) ,这是 zig 专门为匿名结构体和文件类的类型声明(此处可以看 [ 命名空间] ( ../../more/miscellaneous .md#容器 ) )提供的处理方案。
58
+ 答案是使用 [ ` @This ` ] ( https://ziglang.org/documentation/master/#This ) ,这是 zig 专门为匿名结构体和文件类的类型声明(此处可以看 [ 命名空间] ( ../../basic/define-variable .md#容器 ) )提供的处理方案。
59
59
60
60
此函数会返回一个当前包裹它的容器的类型!
61
61
You can’t perform that action at this time.
0 commit comments