From c05a498f9ff3e9784ab25233ade46c9130b2078f Mon Sep 17 00:00:00 2001 From: Julian Hofer Date: Fri, 27 Oct 2023 14:37:27 +0200 Subject: [PATCH] book: Adapt action chapter --- book/src/actions.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/book/src/actions.md b/book/src/actions.md index 149e236973ed..2ed65697397c 100644 --- a/book/src/actions.md +++ b/book/src/actions.md @@ -13,7 +13,7 @@ Filename: listings/actions/2/main.rs ```rust -{{#rustdoc_include ../listings/actions/2/main.rs:action_group}} +{{#rustdoc_include ../listings/actions/2/main.rs:build_ui}} ``` If we bind the accelerator to "custom-group.close", it works just as before. @@ -49,7 +50,7 @@ If we bind the accelerator to "custom-group.close", it works just as before. Filename: listings/actions/2/main.rs ```rust -{{#rustdoc_include ../listings/actions/2/main.rs:main}} +{{#rustdoc_include ../listings/actions/2/main.rs:accel}} ``` Also, if we had multiple instances of the same windows we would expect that only the currently focused window will be closed when activating "win.close". @@ -124,7 +125,7 @@ Filename: