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.
This commit is contained in:
Nuutti Kotivuori 2023-06-12 22:30:04 +03:00 committed by GitHub
parent 278daab6ae
commit 1977b6daf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ pub struct SubApp {
/// The [`SubApp`]'s instance of [`App`] /// The [`SubApp`]'s instance of [`App`]
pub app: 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. /// useful for moving data between the sub app and the main app.
extract: Box<dyn Fn(&mut World, &mut App) + Send>, extract: Box<dyn Fn(&mut World, &mut App) + Send>,
} }