diff --git a/crates/gpui/src/key_dispatch.rs b/crates/gpui/src/key_dispatch.rs index 110e21fbc33203dcaf44317f27d35886ad8b0533..7a56b0695a47e940d247c9708d168ed8c213a8fe 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)) /// ...