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()