From 00a87a27b69ff3eef724db1ebbf0508af675a264 Mon Sep 17 00:00:00 2001 From: Timon Date: Thu, 18 Jan 2018 12:08:52 +0100 Subject: [PATCH] Update mod.rs Some fixes in comments and code --- examples/terminal/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/terminal/mod.rs b/examples/terminal/mod.rs index d1d157b..a71dba4 100644 --- a/examples/terminal/mod.rs +++ b/examples/terminal/mod.rs @@ -96,7 +96,7 @@ pub fn print_terminal_size() print!("X: {}, y: {}", terminal_size.0, terminal_size.1); } -// scroll down 10 linexs +// scroll down 10 lines pub fn scroll_down() { print_test_data(); @@ -106,7 +106,7 @@ pub fn scroll_down() let terminal_size = terminal.scroll_down(10); } -// scroll down 10 linexs +// scroll down 10 lines pub fn scroll_up() { print_test_data(); @@ -114,5 +114,5 @@ pub fn scroll_up() // Get terminal let mut terminal = get(); // Scroll up 10 lines. - let terminal_size = terminal.scroll_up(2); + let terminal_size = terminal.scroll_up(10); }