Improve function documentation
This commit is contained in:
parent
7a723b0ef5
commit
fa75b334d0
|
@ -121,7 +121,7 @@ pub trait TermWrite {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Scroll the window up.
|
/// Scroll the window `num` spaces up.
|
||||||
#[inline]
|
#[inline]
|
||||||
fn scroll_up(&mut self, num: u32) -> io::Result<usize> {
|
fn scroll_up(&mut self, num: u32) -> io::Result<usize> {
|
||||||
if num > 0 {
|
if num > 0 {
|
||||||
|
@ -136,7 +136,7 @@ pub trait TermWrite {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Scroll the window down.
|
/// Scroll the window `num` spaces down.
|
||||||
#[inline]
|
#[inline]
|
||||||
fn scroll_down(&mut self, num: u32) -> io::Result<usize> {
|
fn scroll_down(&mut self, num: u32) -> io::Result<usize> {
|
||||||
if num > 0 {
|
if num > 0 {
|
||||||
|
|
Loading…
Reference in New Issue