Skip to content

Commit

Permalink
格式化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Dec 26, 2023
1 parent 8a7b525 commit 0dcd66d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
8 changes: 4 additions & 4 deletions learn/.vitepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ export default [
{
text: "更多",
items: [
{
text: "内建函数",
link: "/more/builtin_func",
},
{
text: "反射",
link: "/more/reflection",
Expand All @@ -205,6 +201,10 @@ export default [
text: "未定义行为",
link: "/more/undefined_behavior",
},
{
text: "内建函数",
link: "/more/builtin_func",
},
{
text: "风格指南",
link: "/more/style_guide",
Expand Down
2 changes: 0 additions & 2 deletions learn/basic/advanced_type/struct.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ pub fn main() !void {

:::



## 自动推断

zig 在使用结构体的时候还支持省略结构体类型,只要能让 zig 编译器推断出类型即可,例如:
Expand Down

0 comments on commit 0dcd66d

Please sign in to comment.