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(); /// 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()