mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +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> {
|
pub fn back(&self, follow_to_index: bool) -> Option<GString> {
|
||||||
let index = self.index.borrow();
|
let index = self.index.borrow();
|
||||||
let len = index.len();
|
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> {
|
pub fn next(&self, follow_to_index: bool) -> Option<GString> {
|
||||||
let index = self.index.borrow();
|
let index = self.index.borrow();
|
||||||
let len = index.len();
|
let len = index.len();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue