Update README.md

master
prime31 4 years ago committed by GitHub
parent 427c925bc5
commit 5360be5b0e

@ -34,9 +34,9 @@ while (iter.next()) |entity| {
}
```
The same example using a non-owning Group:
The same example using an owning Group:
```zig
var group = reg.group(.{}, .{ Velocity, Position }, .{});
var group = reg.group(.{ Velocity, Position }, .{}, .{});
group.each(each);
fn each(e: struct { vel: *Velocity, pos: *Position }) void {

Loading…
Cancel
Save