File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1- const std = @import ("std" );
2-
31pub fn main () ! void {
42 try One .main ();
53 try Two .main ();
@@ -8,6 +6,7 @@ pub fn main() !void {
86
97const One = struct {
108 // #region one
9+ const std = @import ("std" );
1110 pub fn main () ! void {
1211 std .debug .print ("Hello, World!\n " , .{});
1312 }
@@ -16,6 +15,7 @@ const One = struct {
1615
1716const Two = struct {
1817 // #region two
18+ const std = @import ("std" );
1919 pub fn main () ! void {
2020 var stdout_buffer : [1024 ]u8 = undefined ;
2121 var stdout_writer = std .fs .File .stdout ().writer (& stdout_buffer );
@@ -35,6 +35,7 @@ const Two = struct {
3535
3636const Three = struct {
3737 // #region three
38+ const std = @import ("std" );
3839 pub fn main () ! void {
3940 // 定义两个缓冲区
4041 var stdout_buffer : [1024 ]u8 = undefined ; // [!code focus]
You can’t perform that action at this time.
0 commit comments