Skip to content

Commit

Permalink
hello world 提示 zig init命令变化
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Dec 9, 2023
1 parent 9ce5ad7 commit 4e1906e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions learn/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ outline: deep

先使用 `zig init-exe` 命令初始化一个项目,再将以下内容覆写到 `src/main.zig` 中。

::: warning

当前 `nightly` 版本的 zig 已经将 `zig init-exe``zig init-lib` 合并为一个命令 `zig init`

:::

```zig
const std = @import("std");
Expand Down

0 comments on commit 4e1906e

Please sign in to comment.