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
This commit is contained in:
parent
acc4a5ccb3
commit
c21bca07e2
@ -6,7 +6,7 @@
|
|||||||
/// with a keymap context:
|
/// with a keymap context:
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// actions!(editor,[Undo, Redo]);;
|
/// actions!(editor,[Undo, Redo]);
|
||||||
///
|
///
|
||||||
/// impl Editor {
|
/// impl Editor {
|
||||||
/// fn undo(&mut self, _: &Undo, _window: &mut Window, _cx: &mut Context<Self>) { ... }
|
/// fn undo(&mut self, _: &Undo, _window: &mut Window, _cx: &mut Context<Self>) { ... }
|
||||||
@ -17,7 +17,7 @@
|
|||||||
/// fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
|
/// fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
|
||||||
/// div()
|
/// div()
|
||||||
/// .track_focus(&self.focus_handle(cx))
|
/// .track_focus(&self.focus_handle(cx))
|
||||||
/// .keymap_context("Editor")
|
/// .key_context("Editor")
|
||||||
/// .on_action(cx.listener(Editor::undo))
|
/// .on_action(cx.listener(Editor::undo))
|
||||||
/// .on_action(cx.listener(Editor::redo))
|
/// .on_action(cx.listener(Editor::redo))
|
||||||
/// ...
|
/// ...
|
||||||
|
Loading…
Reference in New Issue
Block a user