favor return over return _ (void return); newline/closing terminates

This commit is contained in:
2026-07-14 19:07:37 +02:00
parent eac5b32738
commit 471896b48a
19 changed files with 92266 additions and 94923 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ deinit func($T type, list @mut ArrayList(T)) void {
reserve func($T type, list @mut ArrayList(T), minimum_capacity usize) void ! mem.AllocError {
if minimum_capacity <= list.capacity {
return _
return
}
new_capacity usize = 8
@@ -48,7 +48,7 @@ reserve func($T type, list @mut ArrayList(T), minimum_capacity usize) void ! mem
}
list.items = grown.ptr[..length]
list.capacity = new_capacity
return _
return
}
append func($T type, list @mut ArrayList(T), value T) void ! mem.AllocError {
@@ -59,7 +59,7 @@ append func($T type, list @mut ArrayList(T), value T) void ! mem.AllocError {
try reserve(list, length + 1)
list.items = list.items.ptr[..length + 1]
list.items[length] = value
return _
return
}
clear func($T type, list @mut ArrayList(T)) void {