Skip to content

Commit c909c6e

Browse files
committed
refactor learning
1 parent 3b1eee5 commit c909c6e

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

content/community/_index.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,6 @@ params:
44
contributingUrl: /contributing
55
---
66

7-
{{% blocks/section color="white" %}}
8-
9-
由于 Zig 目前还处于快速迭代,因此最权威的资料无疑是官方的 [Zig Language Reference](https://ziglang.org/documentation/master/),遇到语言的细节问题,基本都可以在这里找到答案。 其次是社区的一些高质量教程,例如:
10-
11-
- **[Zig Guide](https://zig.guide/):** 英文资料, [Sobeston](https://github.com/Sobeston) 编写
12-
- **[Zig in 30 minutes](https://gist.github.com/ityonemo/769532c2017ed9143f3571e5ac104e50):**
13-
- **[Zig 日报](https://github.com/zigcc/forum/issues):**
14-
- **[学习 Zig](https://learn.ziglang.cc):** 该系列教程最初由 Karl Seguin 编写,该教程行文流畅,讲述的脉络由浅入深,深入浅出,是入门 Zig 非常不错的选择
15-
- **[Zig 语言圣经](https://course.ziglang.cc):** 一份内容全面、深入浅出介绍 Zig 的教程
16-
- **[ziglings/exercises](https://codeberg.org/ziglings/exercises/):** Learn the Zig programming language by fixing tiny broken programs.
17-
- **[Zig Cookbook](https://cookbook.ziglang.cc/):** A collection of simple Zig programs that demonstrate good practices to accomplish common programming tasks
18-
- **[Awesome Zig](https://github.com/zigcc/awesome-zig):** A collection of some awesome public Zig programming language projects.
19-
20-
{{% /blocks/section %}}
21-
227
{{% blocks/section %}}
238
让我们一起探索 Zig 的魅力,推动 Zig 在中文社区内的发展!
249
{.text-center}

content/learn/_index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,15 @@ cascade:
3030
在本仓库的 [release 页面](https://github.com/zigcc/zigcc.github.io/releases)会定期将本教程导出为 PDF 格式,读者可按需下载。
3131

3232
读者也可以使用右侧导航栏中的『[整节打印](_print)』将当前版本教程保存为 PDF 格式。
33+
34+
## 其他学习资料
35+
36+
由于 Zig 目前还处于快速迭代,因此最权威的资料无疑是官方的 [Zig Language Reference](https://ziglang.org/documentation/master/),遇到语言的细节问题,基本都可以在这里找到答案。 其次是社区的一些高质量教程,例如:
37+
38+
- **[Zig 日报](https://github.com/zigcc/forum/issues):**
39+
- **[Zig 语言圣经](https://course.ziglang.cc):** 一份内容全面、深入浅出介绍 Zig 的教程
40+
- **[ziglings/exercises](https://codeberg.org/ziglings/exercises/):** Learn the Zig programming language by fixing tiny broken programs.
41+
- **[Zig Cookbook](https://cookbook.ziglang.cc/):** A collection of simple Zig programs that demonstrate good practices to accomplish common programming tasks
42+
- **[Awesome Zig](https://github.com/zigcc/awesome-zig):** A collection of some awesome public Zig programming language projects.
43+
- **[Zig Guide](https://zig.guide/):** 英文资料, [Sobeston](https://github.com/Sobeston) 编写
44+
- **[Zig in 30 minutes](https://gist.github.com/ityonemo/769532c2017ed9143f3571e5ac104e50):**

content/post/2025-01-23-bonkers-comptime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub fn main() !void {
168168
}
169169
```
170170

171-
这里的 comptime 关键字表示它前面的代码块将在编译期间运行。此外,该代码块被标记为“init”,以便整个块可以通过之后的 break 语句产出一个值。
171+
这里的 comptime 关键字表示它后面的代码块将在编译期间运行。此外,该代码块被标记为“init”,以便整个块可以通过之后的 break 语句产出一个值。
172172

173173
我们一开始用一个 `null_writer` 来计算写入的字节数(但会丢弃实际写入的字节),以确定总长度。然后再根据该长度创建 `full_fizzbuzz` 数组来保存实际数据。
174174

0 commit comments

Comments
 (0)