mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +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();
|
/// let mut siv = Cursive::new();
|
||||||
///
|
///
|
||||||
/// siv.menubar()
|
/// siv.menubar()
|
||||||
/// .add("File",
|
/// .add_subtree("File",
|
||||||
/// MenuTree::new()
|
/// MenuTree::new()
|
||||||
/// .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| {
|
||||||
@ -255,7 +255,7 @@ impl Cursive {
|
|||||||
/// })
|
/// })
|
||||||
/// .delimiter()
|
/// .delimiter()
|
||||||
/// .leaf("Quit", |s| s.quit()))
|
/// .leaf("Quit", |s| s.quit()))
|
||||||
/// .add("Help",
|
/// .add_subtree("Help",
|
||||||
/// MenuTree::new()
|
/// MenuTree::new()
|
||||||
/// .subtree("Help",
|
/// .subtree("Help",
|
||||||
/// MenuTree::new()
|
/// MenuTree::new()
|
||||||
|
Loading…
Reference in New Issue
Block a user