mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-03 17:03:30 +02:00
dev.1711 - switched to multi-object-for-loops
This commit is contained in:
@@ -106,7 +106,7 @@ pub fn main() void {
|
||||
const meal = food_loop: for (menu) |food| {
|
||||
|
||||
// Now look at each required ingredient for the Food...
|
||||
for (food.requires) |required, required_ingredient| {
|
||||
for (food.requires, 0..) |required, required_ingredient| {
|
||||
|
||||
// This ingredient isn't required, so skip it.
|
||||
if (!required) continue;
|
||||
|
||||
Reference in New Issue
Block a user