Skip to content

Commit

Permalink
更新点新内容
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Nov 29, 2023
1 parent 6aefdf9 commit 5cfd88c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
description: "Log level"
required: true
default: 'warning'
default: "warning"
tags:
description: 'Test scenario tags'
description: "Test scenario tags"

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down
6 changes: 5 additions & 1 deletion learn/advanced/type_cast.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,8 @@ const array: [2]u8 = tuple;

显式强制转换是通过内置函数完成的,有些转换是安全的,有些是执行语言级断言,有些转换在运行时无操作。

TODO
- [`@bitCast`](https://ziglang.org/documentation/0.11.0/#bitCast) 更改类型但保持位不变
- [`@alignCast`](https://ziglang.org/documentation/0.11.0/#alignCast) 显式强制转换对齐
- [`@enumFromInt`](https://ziglang.org/documentation/0.11.0/#enumFromInt) 根据整数值获取对应的枚举值
- [`@errSetCast`](https://ziglang.org/documentation/0.11.0/#errSetCast) 显式强制转换为错误的子集
- [`@floatCast`](https://ziglang.org/documentation/0.11.0/#floatCast) 将大浮点数转为小浮点数

0 comments on commit 5cfd88c

Please sign in to comment.