mirror of
https://github.com/krahets/hello-algo.git
synced 2025-01-24 06:50:26 +08:00
fix bug
This commit is contained in:
parent
a667e71b20
commit
749570da0d
@ -140,7 +140,7 @@ fn factorialRecur(n: i32) i32 {
|
||||
}
|
||||
|
||||
// Driver Code
|
||||
pub fn main() void {
|
||||
pub fn main() !void {
|
||||
// 查看本地CPU架构和操作系统信息
|
||||
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});
|
||||
|
@ -27,7 +27,7 @@ pub fn findOne(nums: []i32) i32 {
|
||||
}
|
||||
|
||||
// Driver Code
|
||||
pub fn main() void {
|
||||
pub fn main() !void {
|
||||
// 查看本地CPU架构和操作系统信息
|
||||
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});
|
||||
|
Loading…
Reference in New Issue
Block a user