mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix doc for Cursive::menubar()
This commit is contained in:
parent
ed841825f2
commit
24b342ced8
@ -244,13 +244,13 @@ impl Cursive {
|
|||||||
/// .leaf("New", |s| s.add_layer(Dialog::info("New file!")))
|
/// .leaf("New", |s| s.add_layer(Dialog::info("New file!")))
|
||||||
/// .subtree("Recent", MenuTree::new().with(|tree| {
|
/// .subtree("Recent", MenuTree::new().with(|tree| {
|
||||||
/// for i in 1..100 {
|
/// for i in 1..100 {
|
||||||
/// tree.add_leaf(&format!("Item {}", i), |_| ())
|
/// tree.add_leaf(format!("Item {}", i), |_| ())
|
||||||
/// }
|
/// }
|
||||||
/// }))
|
/// }))
|
||||||
/// .delimiter()
|
/// .delimiter()
|
||||||
/// .with(|tree| {
|
/// .with(|tree| {
|
||||||
/// for i in 1..10 {
|
/// for i in 1..10 {
|
||||||
/// tree.add_leaf(&format!("Option {}", i), |_| ());
|
/// tree.add_leaf(format!("Option {}", i), |_| ());
|
||||||
/// }
|
/// }
|
||||||
/// })
|
/// })
|
||||||
/// .delimiter()
|
/// .delimiter()
|
||||||
|
Loading…
Reference in New Issue
Block a user