From c21bca07e26b145c4d737075cd22e9a753bf142f Mon Sep 17 00:00:00 2001 From: Noah Lemen Date: Thu, 17 Apr 2025 13:33:01 -0400 Subject: [PATCH] Correct typos in GPUI key_dispatch.rs comments (#28926) just noticed an extra semicolon and a reference to the nonexistant `keymap_context` function! Release Notes: - N/A --- crates/gpui/src/key_dispatch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gpui/src/key_dispatch.rs b/crates/gpui/src/key_dispatch.rs index 110e21fbc3..7a56b0695a 100644 --- a/crates/gpui/src/key_dispatch.rs +++ b/crates/gpui/src/key_dispatch.rs @@ -6,7 +6,7 @@ /// with a keymap context: /// /// ```rust -/// actions!(editor,[Undo, Redo]);; +/// actions!(editor,[Undo, Redo]); /// /// impl Editor { /// fn undo(&mut self, _: &Undo, _window: &mut Window, _cx: &mut Context) { ... } @@ -17,7 +17,7 @@ /// fn render(&mut self, window: &mut Window, cx: &mut Context) -> impl IntoElement { /// div() /// .track_focus(&self.focus_handle(cx)) -/// .keymap_context("Editor") +/// .key_context("Editor") /// .on_action(cx.listener(Editor::undo)) /// .on_action(cx.listener(Editor::redo)) /// ...