Rename method and remove commented out code
This commit is contained in:
parent
3298b9f8c7
commit
7bd94e0738
1 changed files with 2 additions and 4 deletions
|
@ -329,9 +329,7 @@ pub mod printf {
|
||||||
_ => {/* fall-through */},
|
_ => {/* fall-through */},
|
||||||
}
|
}
|
||||||
|
|
||||||
//let _ = Cur::new_at_start_with_pos(&s[..], start);
|
Cur::new_at(&s[..], start)
|
||||||
//Cur::new_at_start(&s[start..])
|
|
||||||
Cur::new_at_start_with_pos(&s[..], start)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// This is meant to be a translation of the following regex:
|
// This is meant to be a translation of the following regex:
|
||||||
|
@ -970,7 +968,7 @@ mod strcursor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new_at_start_with_pos(s: &'a str, at: usize) -> StrCursor<'a> {
|
pub fn new_at(s: &'a str, at: usize) -> StrCursor<'a> {
|
||||||
StrCursor {
|
StrCursor {
|
||||||
s,
|
s,
|
||||||
at,
|
at,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue