We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e85297c commit f36fd18Copy full SHA for f36fd18
course/.DS_Store
6 KB
course/code/14/enum.zig
@@ -149,7 +149,7 @@ const EnumLiteral_ = struct {
149
// #region enum_literal
150
// 使用内建函数 @Type 构造出一个 EnumLiteral 类型
151
// 这是目前官方文档中的使用方案
152
- const EnumLiteral: type = @Type(.EnumLiteral);
+ const EnumLiteral: type = @Type(.enum_literal);
153
154
// 定义一个常量 enum_literal,它的类型为 EnumLiteral,并赋值为 “.kkk”
155
const enum_literal: EnumLiteral = .kkk;
0 commit comments