bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Example for `on_event` not up to date with changes made in 0.11

Open Purfakt opened this issue 1 year ago • 1 comments

How can Bevy's documentation be improved?

The current (0.12.1) example in the documentation for on_event is not up to date with changes made in 0.11.

app.add_systems(
    my_system.run_if(on_event::<MyEvent>()),
);

// [...]

I expected it to be something like:

app.add_systems(
    Update, my_system.run_if(on_event::<MyEvent>()),
);

// [...]

Purfakt avatar Feb 10 '24 16:02 Purfakt

The perils of mocking the bevy_app types for our doc tests. Thanks for spotting this!

alice-i-cecile avatar Feb 10 '24 17:02 alice-i-cecile