gpui: Update doc comment for App::new (#27089)

This PR updates the doc comment for the `App::new` method.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-19 12:51:19 -04:00 committed by GitHub
parent 74a39c7263
commit 9fe243efa5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1605,9 +1605,10 @@ impl App {
impl AppContext for App {
type Result<T> = 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<T: 'static>(
&mut self,
build_entity: impl FnOnce(&mut Context<'_, T>) -> T,