From 3c8b3767640a32625db05dd05f733e6111c9e20c Mon Sep 17 00:00:00 2001 From: Petros Amoiridis Date: Sat, 30 Mar 2024 20:39:45 +0200 Subject: [PATCH] Fix broken character (#9992) This is extremely minor but I couldn't help it. ![broken-character](https://github.com/zed-industries/zed/assets/28818/1b598b53-2a6a-4fd7-8857-a43e682db35e) Release Notes: - N/A --- crates/gpui/docs/contexts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gpui/docs/contexts.md b/crates/gpui/docs/contexts.md index 763a902517..3ccac8dcee 100644 --- a/crates/gpui/docs/contexts.md +++ b/crates/gpui/docs/contexts.md @@ -1,6 +1,6 @@ # Contexts -GPUI makes extensive use of *context parameters*, typically named `cx` and positioned at the end of the parameter list, unless they're before a final function parameter. A context reference provides access to application state and services. +GPUI makes extensive use of _context parameters_, typically named `cx` and positioned at the end of the parameter list, unless they're before a final function parameter. A context reference provides access to application state and services. There are multiple kinds of contexts, and contexts implement the `Deref` trait so that a function taking `&mut AppContext` could be passed a `&mut WindowContext` or `&mut ViewContext` instead. @@ -30,7 +30,7 @@ Available when you create or update a `Model`. It derefs to an `AppContext`, ## `ViewContext` -Available when you create or update a `View`. It derefs to a `WindowContext`, but also contains methods specific to the particular view, such as the ability to notify change observers or emit events. +Available when you create or update a `View`. It derefs to a `WindowContext`, but also contains methods specific to the particular view, such as the ability to notify change observers or emit events. ## `AsyncAppContext` and `AsyncWindowContext`