mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
add comments
This commit is contained in:
parent
deda967d95
commit
7338e2c81f
@ -51,6 +51,8 @@ impl Memory {
|
||||
}
|
||||
}
|
||||
|
||||
/// Get previous history record
|
||||
/// * change `cursor` position if `follow_to_index` match `true`
|
||||
pub fn back(&self, follow_to_index: bool) -> Option<GString> {
|
||||
let index = self.index.borrow();
|
||||
let len = index.len();
|
||||
@ -65,6 +67,8 @@ impl Memory {
|
||||
}
|
||||
}
|
||||
|
||||
/// Get next history record
|
||||
/// * change `cursor` position if `follow_to_index` match `true`
|
||||
pub fn next(&self, follow_to_index: bool) -> Option<GString> {
|
||||
let index = self.index.borrow();
|
||||
let len = index.len();
|
||||
|
Loading…
x
Reference in New Issue
Block a user