mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00: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