From 24b342ced8bcba76df104fd393fbbc545798be55 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Mon, 23 Jan 2017 15:58:38 -0800 Subject: [PATCH] Fix doc for Cursive::menubar() --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f56b138..acc1612 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -244,13 +244,13 @@ impl Cursive { /// .leaf("New", |s| s.add_layer(Dialog::info("New file!"))) /// .subtree("Recent", MenuTree::new().with(|tree| { /// for i in 1..100 { - /// tree.add_leaf(&format!("Item {}", i), |_| ()) + /// tree.add_leaf(format!("Item {}", i), |_| ()) /// } /// })) /// .delimiter() /// .with(|tree| { /// for i in 1..10 { - /// tree.add_leaf(&format!("Option {}", i), |_| ()); + /// tree.add_leaf(format!("Option {}", i), |_| ()); /// } /// }) /// .delimiter()