From 9fe243efa52291f4a15b5974e78f6e7ad8c658bd Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 19 Mar 2025 12:51:19 -0400 Subject: [PATCH] gpui: Update doc comment for `App::new` (#27089) This PR updates the doc comment for the `App::new` method. Release Notes: - N/A --- crates/gpui/src/app.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index 04cb010ed6..956cf3f435 100644 --- a/crates/gpui/src/app.rs +++ b/crates/gpui/src/app.rs @@ -1605,9 +1605,10 @@ impl App { impl AppContext for App { type Result = T; - /// Build an entity that is owned by the application. The given function will be invoked with - /// a `Context` and must return an object representing the entity. A `Entity` handle will be returned, - /// which can be used to access the entity in a context. + /// Builds an entity that is owned by the application. + /// + /// The given function will be invoked with a [`Context`] and must return an object representing the entity. An + /// [`Entity`] handle will be returned, which can be used to access the entity in a context. fn new( &mut self, build_entity: impl FnOnce(&mut Context<'_, T>) -> T,