Fix doc for Cursive::menubar()

This commit is contained in:
Alexandre Bury 2017-01-23 15:58:38 -08:00
parent ed841825f2
commit 24b342ced8

View File

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