From 0dcd66dc4454851eed0218b1e6e818a6477767e4 Mon Sep 17 00:00:00 2001 From: jinzhongjia Date: Tue, 26 Dec 2023 20:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CODE_OF_CONDUCT.md | 22 +++++++++++----------- learn/.vitepress/sidebar.ts | 8 ++++---- learn/basic/advanced_type/struct.md | 2 -- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 45ee2b9b..c2bd42d5 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -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 @@ -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 diff --git a/learn/.vitepress/sidebar.ts b/learn/.vitepress/sidebar.ts index 0387fe3b..34dc5d99 100644 --- a/learn/.vitepress/sidebar.ts +++ b/learn/.vitepress/sidebar.ts @@ -181,10 +181,6 @@ export default [ { text: "更多", items: [ - { - text: "内建函数", - link: "/more/builtin_func", - }, { text: "反射", link: "/more/reflection", @@ -205,6 +201,10 @@ export default [ text: "未定义行为", link: "/more/undefined_behavior", }, + { + text: "内建函数", + link: "/more/builtin_func", + }, { text: "风格指南", link: "/more/style_guide", diff --git a/learn/basic/advanced_type/struct.md b/learn/basic/advanced_type/struct.md index 516920a8..ce4ccb60 100644 --- a/learn/basic/advanced_type/struct.md +++ b/learn/basic/advanced_type/struct.md @@ -253,8 +253,6 @@ pub fn main() !void { ::: - - ## 自动推断 zig 在使用结构体的时候还支持省略结构体类型,只要能让 zig 编译器推断出类型即可,例如: