Skip to content

Commit 25223a0

Browse files
committed
Fix bug in Example
Signed-off-by: nathom <nathanthomas707@gmail.com>
1 parent 2be2542 commit 25223a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ use youchoose;
6262
fn main() {
6363
let mut menu = youchoose::Menu::new(0..100)
6464
.preview(multiples) // Sets the preview function
65-
.preview_pos(youchoose::ScreenSide::Bottom) // Sets the position of the preview pane
65+
.preview_pos(youchoose::ScreenSide::Bottom, 0.3) // Sets the position of the preview pane
6666
.preview_label(" multiples ".to_string()) // Sets the text at the top of the preview pane
6767
.multiselect() // Allows multiple items to be selected
6868
.icon(":(") // Sets the default (not selected) icon for an item

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
//! fn main() {
6868
//! let mut menu = youchoose::Menu::new(0..100)
6969
//! .preview(multiples) // Sets the preview function
70-
//! .preview_pos(youchoose::ScreenSide::Bottom) // Sets the position of the preview pane
70+
//! .preview_pos(youchoose::ScreenSide::Bottom, 0.3) // Sets the position of the preview pane
7171
//! .preview_label(" multiples ".to_string()) // Sets the text at the top of the preview pane
7272
//! .multiselect() // Allows multiple items to be selected
7373
//! .icon(":(") // Sets the default (not selected) icon for an item

0 commit comments

Comments
 (0)