Skip to content

Commit 14fd725

Browse files
committed
Fix doc in App::add_sub_app (#7139)
# Objective - Fix the name of function parameter name in docs ## Solution - Change `f` to `sub_app_runner` --- It confused me a bit when I was reading the docs in the autocomplete hint. Hesitated about filing a PR since it's just a one single word change in the comment. Is this the right process to change these docs?
1 parent ec638ad commit 14fd725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_app/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ impl App {
10181018

10191019
/// Adds an [`App`] as a child of the current one.
10201020
///
1021-
/// The provided function `f` is called by the [`update`](Self::update) method. The [`World`]
1021+
/// The provided function `sub_app_runner` is called by the [`update`](Self::update) method. The [`World`]
10221022
/// parameter represents the main app world, while the [`App`] parameter is just a mutable
10231023
/// reference to the `SubApp` itself.
10241024
pub fn add_sub_app(

0 commit comments

Comments
 (0)