From fa82690c10549da66407ef040b84bacb3a91e226 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Mon, 23 Jan 2017 16:54:27 -0800 Subject: [PATCH] Fix docs for `Cursive::menubar()` ... again --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index acc1612..02a51c0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -239,7 +239,7 @@ impl Cursive { /// let mut siv = Cursive::new(); /// /// siv.menubar() - /// .add("File", + /// .add_subtree("File", /// MenuTree::new() /// .leaf("New", |s| s.add_layer(Dialog::info("New file!"))) /// .subtree("Recent", MenuTree::new().with(|tree| { @@ -255,7 +255,7 @@ impl Cursive { /// }) /// .delimiter() /// .leaf("Quit", |s| s.quit())) - /// .add("Help", + /// .add_subtree("Help", /// MenuTree::new() /// .subtree("Help", /// MenuTree::new()