mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Fix docs for Cursive::menubar()
... again
This commit is contained in:
parent
0977daa12d
commit
fa82690c10
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user