From 1977b6daf2fbc2f3151859c899c29bfa704dad3f Mon Sep 17 00:00:00 2001 From: Nuutti Kotivuori Date: Mon, 12 Jun 2023 22:30:04 +0300 Subject: [PATCH] Fix documentation of `SubApp` `extract` (#8747) # Objective The `extract` function is given the main app world, and the subapp, not vice versa as the comment would lead us to believe. ## Solution Fix the doc. --- crates/bevy_app/src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_app/src/app.rs b/crates/bevy_app/src/app.rs index b8805df49f..0171362082 100644 --- a/crates/bevy_app/src/app.rs +++ b/crates/bevy_app/src/app.rs @@ -141,7 +141,7 @@ pub struct SubApp { /// The [`SubApp`]'s instance of [`App`] pub app: App, - /// A function that allows access to both the [`SubApp`] [`World`] and the main [`App`]. This is + /// A function that allows access to both the main [`App`] [`World`] and the [`SubApp`]. This is /// useful for moving data between the sub app and the main app. extract: Box, }