Fix docs for Cursive::menubar()

... again
This commit is contained in:
Alexandre Bury 2017-01-23 16:54:27 -08:00
parent 0977daa12d
commit fa82690c10

View File

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