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 4ae4f06 commit d935c5bCopy full SHA for d935c5b
course/code/14/hello_world.zig
@@ -8,7 +8,7 @@ const One = struct {
8
// #region one
9
const std = @import("std");
10
11
- pub fn main() void {
+ pub fn main() !void {
12
std.debug.print("Hello, World!\n", .{});
13
}
14
// #endregion one
course/hello-world.md
@@ -6,7 +6,7 @@ outline: deep
6
7
与学习其他编程语言一样,我们也将从经典的 `Hello, World!` 程序开始,以此向 Zig 的世界打一声招呼。
-首先,使用 `zig init-exe` 命令初始化一个可执行项目,然后将以下内容覆盖写入到 `src/main.zig` 文件中。
+首先,使用 `zig init` 命令初始化一个可执行项目,然后将以下内容覆盖写入到 `src/main.zig` 文件中。
<!-- 引入代码片段 -->
<!-- 具体说明见:https://vitepress.dev/zh/guide/markdown#import-code-snippets -->
0 commit comments