mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add comments
This commit is contained in:
parent
deda967d95
commit
7338e2c81f
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue