Skip to content

Commit

Permalink
移除内建函数讲解章节
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Jan 1, 2024
1 parent 5af7b9f commit 9273c2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions learn/.vitepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ export default [
text: "未定义行为",
link: "/more/undefined_behavior",
},
{
text: "内建函数",
link: "/more/builtin_func",
},
// {
// text: "内建函数",
// link: "/more/builtin_func",
// },
{
text: "风格指南",
link: "/more/style_guide",
Expand Down
8 changes: 8 additions & 0 deletions learn/basic/basic_type/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ zig 在这方面的处理则是,原始类型(整型、布尔这种)传递

:::

## 内建函数

内建函数由编译器提供,并以 `@` 为前缀。参数上的 `comptime` 关键字意味着该参数必须在编译期已知。

介于内建函数的数目过多,故不进行系统讲解,仅在对应章节说明涉及到的内建函数。

更多的内建函数文档请看 [这里](https://ziglang.org/documentation/master/#Builtin-Functions)

## 高阶使用

### `anytype`
Expand Down

0 comments on commit 9273c2c

Please sign in to comment.