mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Named return value act as variables; Code reorganization
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ read_entire_file :: proc(name: string) -> (data: []byte, success: bool) {
|
||||
return nil, true;
|
||||
}
|
||||
|
||||
data := make([]byte, int(length));
|
||||
data = make([]byte, int(length));
|
||||
if data == nil {
|
||||
return nil, false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user