File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
build_system/externalfile Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -188,9 +188,9 @@ bun export-pdf # 导出 PDF 版本
188188 - 使用中文标点符号
189189 - 代码块指定语言类型
190190- ** 分支命名** :
191- - 功能: ` feature/功能描述 `
192- - 修复: ` fix/问题描述 `
193- - 文档: ` docs/文档更新 `
191+ - 功能: ` feature/功能描述 `
192+ - 修复: ` fix/问题描述 `
193+ - 文档: ` docs/文档更新 `
194194
195195### 内容编写指南
196196
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ pub fn build(b: *std.Build) !void {
1616 const exe = b .addExecutable (.{
1717 .name = "zig" ,
1818 .root_module = b .addModule ("zig" , .{
19- .root_source_file = b .path ("src/main.zig" ),
20- .target = target ,
21- .optimize = optimize ,
19+ .root_source_file = b .path ("src/main.zig" ),
20+ .target = target ,
21+ .optimize = optimize ,
2222 }),
2323 });
2424
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ const Three = struct {
3737 // #region three
3838 pub fn main () ! void {
3939 // 定义两个缓冲区
40- var stdout_buffer : [1024 ]u8 = undefined ;// [!code focus]
41- var stderr_buffer : [1024 ]u8 = undefined ;// [!code focus]
40+ var stdout_buffer : [1024 ]u8 = undefined ; // [!code focus]
41+ var stderr_buffer : [1024 ]u8 = undefined ; // [!code focus]
4242
4343 // 获取writer句柄// [!code focus]
4444 var stdout_writer = std .fs .File .stdout ().writer (& stdout_buffer );
@@ -49,8 +49,8 @@ const Three = struct {
4949 const stderr = & stderr_writer .interface ;
5050
5151 // 通过句柄写入buffer// [!code focus]
52- try stdout .print ("Hello {s}!\n " , .{"out" });// [!code focus]
53- try stderr .print ("Hello {s}!\n " , .{"err" });// [!code focus]
52+ try stdout .print ("Hello {s}!\n " , .{"out" }); // [!code focus]
53+ try stderr .print ("Hello {s}!\n " , .{"err" }); // [!code focus]
5454
5555 try stdout .flush ();
5656 try stderr .flush ();
@@ -61,4 +61,3 @@ const Three = struct {
6161 }
6262 // #endregion three
6363};
64-
You can’t perform that action at this time.
0 commit comments