favor return over return _ (void return); newline/closing terminates
This commit is contained in:
@@ -6,7 +6,7 @@ main func() void {
|
||||
|
||||
data :: mem.alloc(u8, allocator, 24) catch |_| {
|
||||
_ = c.printf("Failed to allocate memory\n")
|
||||
return _
|
||||
return
|
||||
}
|
||||
defer mem.free(u8, allocator, data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user