mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 13:16: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
|
||||
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 a new issue