mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-26 00:26:29 +08:00
fix bug
This commit is contained in:
parent
a667e71b20
commit
749570da0d
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ fn factorialRecur(n: i32) i32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Driver Code
|
// Driver Code
|
||||||
pub fn main() void {
|
pub fn main() !void {
|
||||||
// 查看本地CPU架构和操作系统信息
|
// 查看本地CPU架构和操作系统信息
|
||||||
var native_target_info = try std.zig.system.NativeTargetInfo.detect(std.zig.CrossTarget{});
|
var native_target_info = try std.zig.system.NativeTargetInfo.detect(std.zig.CrossTarget{});
|
||||||
std.debug.print("Native Info: CPU Arch = {}, OS = {}\n", .{native_target_info.target.cpu.arch, native_target_info.target.os.tag});
|
std.debug.print("Native Info: CPU Arch = {}, OS = {}\n", .{native_target_info.target.cpu.arch, native_target_info.target.os.tag});
|
||||||
|
|
|
@ -27,7 +27,7 @@ pub fn findOne(nums: []i32) i32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Driver Code
|
// Driver Code
|
||||||
pub fn main() void {
|
pub fn main() !void {
|
||||||
// 查看本地CPU架构和操作系统信息
|
// 查看本地CPU架构和操作系统信息
|
||||||
var native_target_info = try std.zig.system.NativeTargetInfo.detect(std.zig.CrossTarget{});
|
var native_target_info = try std.zig.system.NativeTargetInfo.detect(std.zig.CrossTarget{});
|
||||||
std.debug.print("Native Info: CPU Arch = {}, OS = {}\n", .{native_target_info.target.cpu.arch, native_target_info.target.os.tag});
|
std.debug.print("Native Info: CPU Arch = {}, OS = {}\n", .{native_target_info.target.cpu.arch, native_target_info.target.os.tag});
|
||||||
|
|
Loading…
Reference in a new issue